svn commit: samba r5500 - in branches/SAMBA_4_0/source/ntvfs/print:
.
metze at samba.org
metze at samba.org
Tue Feb 22 11:33:33 GMT 2005
Author: metze
Date: 2005-02-22 11:33:33 +0000 (Tue, 22 Feb 2005)
New Revision: 5500
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5500
Log:
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
Modified:
branches/SAMBA_4_0/source/ntvfs/print/vfs_print.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/print/vfs_print.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/print/vfs_print.c 2005-02-22 10:36:13 UTC (rev 5499)
+++ branches/SAMBA_4_0/source/ntvfs/print/vfs_print.c 2005-02-22 11:33:33 UTC (rev 5500)
@@ -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;
}
More information about the samba-cvs
mailing list