summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index e6c8b2a6d8..2eab50c482 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -273,6 +273,11 @@ connection_struct *make_connection(char *service,char *user,char *password, int
return NULL;
}
+ /* Behave as a printer if we are supposed to */
+ if (lp_print_ok(snum) && (strcmp(dev, "A:") == 0)) {
+ pstrcpy(dev, "LPT1:");
+ }
+
/* lowercase the user name */
strlower(user);