mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r5500: ntvfs modules that are the final backend needs to set the
dev and fs types this prevents the main smbsrv code from crashing when someone does a tree connect on a print share metze (This used to be commit e8b081d5d10ef617eaed88fd05990e7753a85b99)
This commit is contained in:
parent
1bee0173ec
commit
90428a44a9
@ -34,6 +34,14 @@
|
||||
static NTSTATUS print_connect(struct ntvfs_module_context *ntvfs,
|
||||
struct smbsrv_request *req, const char *sharename)
|
||||
{
|
||||
struct smbsrv_tcon *tcon = req->tcon;
|
||||
|
||||
tcon->fs_type = talloc_strdup(tcon, "NTFS");
|
||||
NT_STATUS_HAVE_NO_MEMORY(tcon->fs_type);
|
||||
|
||||
tcon->dev_type = talloc_strdup(tcon, "LPT1:");
|
||||
NT_STATUS_HAVE_NO_MEMORY(tcon->dev_type);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user