diff options
author | Luke Leighton <lkcl@samba.org> | 2000-02-04 17:58:45 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-02-04 17:58:45 +0000 |
commit | 8154949da7abddf5935b8323d51cfe2eae229011 (patch) | |
tree | 5835fa37c1924d1ca62d278b99d742e1dc8589d5 /source/smbd | |
parent | b143c7631102346e056d97b40d37ad9aa37816c6 (diff) | |
download | samba-8154949da7abddf5935b8323d51cfe2eae229011.tar.gz |
completes the patch to create and use standard_sub_vuser(). in some
instances i have added UID_FIELD_INVALID so that standard_sub_vuser
defaults to the same functionality and standard_sub_basic().
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/close.c | 2 | ||||
-rw-r--r-- | source/smbd/reply.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/smbd/close.c b/source/smbd/close.c index e18454bfa7b..d81961b7cd6 100644 --- a/source/smbd/close.c +++ b/source/smbd/close.c @@ -128,7 +128,7 @@ void close_file(files_struct *fsp, BOOL normal_close) /* NT uses smbclose to start a print - weird */ if (normal_close && fsp->print_file) - print_file(conn, SNUM(conn), fsp); + print_file(conn, fsp->vuid, SNUM(conn), fsp); /* check for magic scripts */ if (normal_close) { diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 718f0cf47f8..cee776351a6 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -2763,6 +2763,7 @@ int reply_printqueue(connection_struct *conn, int outsize = set_message(outbuf,2,3,True); int max_count = SVAL(inbuf,smb_vwv0); int start_index = SVAL(inbuf,smb_vwv1); + uint16 vuid = SVAL(inbuf,smb_uid); /* we used to allow the client to get the cnum wrong, but that is really quite gross and only worked when there was only @@ -2782,7 +2783,7 @@ int reply_printqueue(connection_struct *conn, { print_queue_struct *queue = NULL; char *p = smb_buf(outbuf) + 3; - int count = get_printqueue(SNUM(conn), conn,&queue,NULL); + int count = get_printqueue(SNUM(conn), conn, vuid, &queue,NULL); int num_to_get = ABS(max_count); int first = (max_count>0?start_index:start_index+max_count+1); int i; |