diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-11 23:28:15 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-11 23:28:15 +0000 |
commit | 36d62e5667f3b9e39362fb3907bf69697fca3ea6 (patch) | |
tree | 0a37121ad48303edddc4af4dd739c26d2a607532 | |
parent | 23f0fcf6421b1e8dd6ed6ab14af14ea7eb380c1c (diff) | |
download | samba-36d62e5667f3b9e39362fb3907bf69697fca3ea6.tar.gz samba-36d62e5667f3b9e39362fb3907bf69697fca3ea6.tar.xz samba-36d62e5667f3b9e39362fb3907bf69697fca3ea6.zip |
cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
-rw-r--r-- | source/smbd/reply.c | 2 | ||||
-rw-r--r-- | source/smbd/service.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 7da5c877a74..c4147f78b1d 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -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:"; diff --git a/source/smbd/service.c b/source/smbd/service.c index eee17eda8c3..67eea806c4b 100644 --- a/source/smbd/service.c +++ b/source/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,"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; |