summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-07-06 07:10:32 +0000
committerTim Potter <tpot@samba.org>2000-07-06 07:10:32 +0000
commit75dd5b5051f6e0f29ae51ecbc493d78e44ca5e21 (patch)
tree17c4eb637730638847563035a4ee7b6935a7d363 /source3/printing
parent957aa91e9eeedf605307ad2129e7f687cf7e5f61 (diff)
downloadsamba-75dd5b5051f6e0f29ae51ecbc493d78e44ca5e21.tar.gz
samba-75dd5b5051f6e0f29ae51ecbc493d78e44ca5e21.tar.bz2
samba-75dd5b5051f6e0f29ae51ecbc493d78e44ca5e21.zip
Don't check NT permissions when printing from lanman.
(This used to be commit e84607eedf3be454f8f709c70cafc5ded4ea951d)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 3a6ab9256b..e666c1d6a7 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1678,6 +1678,14 @@ BOOL print_access_check(struct current_user *user, int snum,
BOOL result;
char *pname;
int i;
+
+ /* If the user is NULL then we are being called by the lanman
+ printing system. Let the lower level printing permissions
+ handle this. */
+
+ if (user == NULL) {
+ return True;
+ }
/* Get printer name */