summaryrefslogtreecommitdiff
path: root/source4/ntvfs/print
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/print')
-rw-r--r--source4/ntvfs/print/vfs_print.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/ntvfs/print/vfs_print.c b/source4/ntvfs/print/vfs_print.c
index c62357c949..c04cf76f33 100644
--- 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;
}