diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-09 22:34:30 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-09 22:34:30 +0000 |
commit | 9bf3d3cb039d5304a70d1844b262c23489aa3227 (patch) | |
tree | 9ebda79902ae5d5228fc916af1464d778381a206 /source3 | |
parent | 045db5d0458b331e987d82d6e9a61a0b85957d17 (diff) | |
download | samba-9bf3d3cb039d5304a70d1844b262c23489aa3227.tar.gz samba-9bf3d3cb039d5304a70d1844b262c23489aa3227.tar.bz2 samba-9bf3d3cb039d5304a70d1844b262c23489aa3227.zip |
Fix from Steve Langasek <vorlon@netexpress.net> for non-RPC printing.
Jeremy.
(This used to be commit cfbd02b170ab7d9c5c9cc9dbab0a094faa15c518)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 080e2f76df..eee17eda8c 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; |