summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-05-03 02:51:08 +0000
committerJeremy Allison <jra@samba.org>2001-05-03 02:51:08 +0000
commit1475474425c07d6e0a997793ab6b078ffdf466d9 (patch)
tree876f2b7465225cdf0e0a0b3556aa124b13069916 /source3
parentc6e8e75a64e9cebd0bc5ac31fcb2181d6b5bb287 (diff)
downloadsamba-1475474425c07d6e0a997793ab6b078ffdf466d9.tar.gz
samba-1475474425c07d6e0a997793ab6b078ffdf466d9.tar.bz2
samba-1475474425c07d6e0a997793ab6b078ffdf466d9.zip
Merging Gerald's "no printer driver" fix from 2.2.
Jeremy. (This used to be commit 409b1e4d1b996b26eee80bf5cb4edd962e4a4c76)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 3b937c9534..9b22ed5227 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2372,8 +2372,18 @@ static uint32 get_a_printer_2_default(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstrin
fstrcpy(info.portname, SAMBA_PRINTER_PORT_NAME);
fstrcpy(info.drivername, lp_printerdriver(snum));
+#if 0 /* JERRY */
if (!*info.drivername)
fstrcpy(info.drivername, "NO DRIVER AVAILABLE FOR THIS PRINTER");
+#else
+ /* by setting the driver name to an empty string, a local NT admin
+ can now run the **local** APW to install a local printer driver
+ for a Samba shared printer in 2.2. Without this, drivers **must** be
+ installed on the Samba server for NT clients --jerry */
+ if (!*info.drivername)
+ fstrcpy(info.drivername, "");
+#endif
+
DEBUG(10,("get_a_printer_2_default: driver name set to [%s]\n", info.drivername));