summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-11 23:29:23 +0000
committerGerald Carter <jerry@samba.org>2003-04-11 23:29:23 +0000
commit04bb7e808ae391d207afb2d87e55ea0d20659dd4 (patch)
tree615b767cd854f137ba2f2960728a270b715e46d7 /source3/smbd
parent70231290eac4e3d9c034daaf44fb64947d9f1bee (diff)
downloadsamba-04bb7e808ae391d207afb2d87e55ea0d20659dd4.tar.gz
samba-04bb7e808ae391d207afb2d87e55ea0d20659dd4.tar.bz2
samba-04bb7e808ae391d207afb2d87e55ea0d20659dd4.zip
cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
(This used to be commit beedde03fcdd37b567661d96d97efaac640601bd)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
-rw-r--r--source3/smbd/service.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index c4e95b7562..0b710d6401 100644
--- a/source3/smbd/reply.c
+++ b/source3/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/source3/smbd/service.c b/source3/smbd/service.c
index 146212701e..18a92bc82f 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,"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;