Fix from Steve Langasek <vorlon@netexpress.net> for non-RPC printing.
authorJeremy Allison <jra@samba.org>
Wed, 9 Apr 2003 22:34:58 +0000 (22:34 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 9 Apr 2003 22:34:58 +0000 (22:34 +0000)
Jeremy.
(This used to be commit 186d53cbc1642ee5dd1daf0277dc08de621eede2)

source3/smbd/service.c

index 5c87eb0729bc366d2f06cc23bb3dfe0191435073..146212701e39aa780483066573f47ee1de8c0ef5 100644 (file)
@@ -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;