summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-07 07:35:23 -0400
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:14 -0400
commit21cd59e7a5b319a8800c904d21f0d1e885acc7fb (patch)
treefd0d48b3951a59f61bf737290e70324b77d9daeb
parentbdab6b10d25f536fe25c09b3821376e278395abc (diff)
downloadsamba-21cd59e7a5b319a8800c904d21f0d1e885acc7fb.tar.gz
samba-21cd59e7a5b319a8800c904d21f0d1e885acc7fb.tar.bz2
samba-21cd59e7a5b319a8800c904d21f0d1e885acc7fb.zip
s3-smbd: Use the right check to test if we can print.
Signed-off-by: Jim McDonough <jmcd@samba.org>
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3b9f6a76c5..fe0e717637 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -5241,7 +5241,7 @@ void reply_printwrite(struct smb_request *req)
return;
}
- if (!CAN_PRINT(conn)) {
+ if (!fsp->print_file) {
reply_nterror(req, NT_STATUS_ACCESS_DENIED);
END_PROFILE(SMBsplwr);
return;