summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-04-09 22:34:58 +0000
committerJeremy Allison <jra@samba.org>2003-04-09 22:34:58 +0000
commit0294da3caa340889c3e252df5e0437dee47508c8 (patch)
tree82cb5ecefb29fade1f6c5a0c4a44c48fe1e76b1d
parent80b4dc47132ce5c4b0212cab8e719f950c9d29f3 (diff)
downloadsamba-0294da3caa340889c3e252df5e0437dee47508c8.tar.gz
samba-0294da3caa340889c3e252df5e0437dee47508c8.tar.bz2
samba-0294da3caa340889c3e252df5e0437dee47508c8.zip
Fix from Steve Langasek <vorlon@netexpress.net> for non-RPC printing.
Jeremy. (This used to be commit 186d53cbc1642ee5dd1daf0277dc08de621eede2)
-rw-r--r--source3/smbd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 5c87eb0729..146212701e 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -229,7 +229,7 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev)
if (dev[0] == '?' || !dev[0]) {
if (lp_print_ok(snum)) {
- fstrcpy(dev,"LPT1:");
+ fstrcpy(dev,"LPT:");
} else if (strequal(lp_fstype(snum), "IPC")) {
fstrcpy(dev, "IPC");
} else {
@@ -253,7 +253,7 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev)
/* Behave as a printer if we are supposed to */
if (lp_print_ok(snum) && (strcmp(dev, "A:") == 0)) {
- fstrcpy(dev, "LPT1:");
+ fstrcpy(dev, "LPT:");
}
return NT_STATUS_OK;