From 90428a44a91d0a97769ba6c2d8459c35a9e96b12 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 22 Feb 2005 11:33:33 +0000 Subject: 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) --- source4/ntvfs/print/vfs_print.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') 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; } -- cgit