cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
authorGerald Carter <jerry@samba.org>
Fri, 11 Apr 2003 23:29:23 +0000 (23:29 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 11 Apr 2003 23:29:23 +0000 (23:29 +0000)
source/smbd/reply.c
source/smbd/service.c

index c4e95b756205fe32b50421f5a2c098d7a7796c6e..0b710d6401088c16a6b2502e422c10153e1d6d79 100644 (file)
@@ -271,7 +271,7 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
        if ( IS_IPC(conn) )
                server_devicetype = "IPC";
        else if ( IS_PRINT(conn) )
-               server_devicetype = "LPT:";
+               server_devicetype = "LPT1:";
        else 
                server_devicetype = "A:";
 
index 146212701e39aa780483066573f47ee1de8c0ef5..18a92bc82ff505d6d3077f9edfc67c1f04012976 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,"LPT:");
+                       fstrcpy(dev,"LPT1:");
                } else if (strequal(lp_fstype(snum), "IPC")) {
                        fstrcpy(dev, "IPC");
                } else {
@@ -240,7 +240,7 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev)
        strupper(dev);
 
        if (lp_print_ok(snum)) {
-               if (!strequal(dev, "LPT:")) {
+               if (!strequal(dev, "LPT1:")) {
                        return NT_STATUS_BAD_DEVICE_TYPE;
                }
        } else if (strequal(lp_fstype(snum), "IPC")) {
@@ -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, "LPT:");
+               fstrcpy(dev, "LPT1:");
        }
 
        return NT_STATUS_OK;