git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bee017
)
r5500: ntvfs modules that are the final backend needs to set the
author
Stefan Metzmacher
<metze@samba.org>
Tue, 22 Feb 2005 11:33:33 +0000
(11:33 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:10:51 +0000
(13:10 -0500)
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
)
source4/ntvfs/print/vfs_print.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/print/vfs_print.c
b/source4/ntvfs/print/vfs_print.c
index c62357c949e6badb911dc3d57584425d3d3bbbad..c04cf76f332c7afa8df47beb5a7ed0da44eebac2 100644
(file)
--- a/
source4/ntvfs/print/vfs_print.c
+++ b/
source4/ntvfs/print/vfs_print.c
@@
-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;
}