diff options
author | Jeremy Allison <jra@samba.org> | 1997-10-15 21:53:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-10-15 21:53:59 +0000 |
commit | 16fd4337f79ce33f91050c96c4a566221c5d9126 (patch) | |
tree | 35f06822ded7d84e504e664e2d83d902a9730ac5 /source/smbd/ipc.c | |
parent | ed606bc7d4e6fb1091e527ea70a3e950d50a1db4 (diff) | |
download | samba-16fd4337f79ce33f91050c96c4a566221c5d9126.tar.gz samba-16fd4337f79ce33f91050c96c4a566221c5d9126.tar.xz samba-16fd4337f79ce33f91050c96c4a566221c5d9126.zip |
ipc.c: Adding Andrews become_root code to the main branch.
locking.c: Adding Andrews become_root code to the main branch.
pipes.c: Fixing the close_file issue.
proto.h: The usual.
reply.c: Move smb_pass into NTDOMAIN defined code. Fixing the close_file issue.
server.c: Fixing the close_file issue.
trans2.c: Fixing the close_file issue.
uid.c: Adding Andrews become_root code to the main branch.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/smbd/ipc.c')
-rw-r--r-- | source/smbd/ipc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c index c29e8656b17..142f139d260 100644 --- a/source/smbd/ipc.c +++ b/source/smbd/ipc.c @@ -1602,6 +1602,8 @@ static BOOL api_PrintJobInfo(int cnum,uint16 vuid,char *param,char *data, DEBUG(3,("Setting print name to %s\n",name)); + become_root(True); + for (i=0;i<MAX_OPEN_FILES;i++) if (Files[i].open && Files[i].print_file) { @@ -1617,6 +1619,8 @@ static BOOL api_PrintJobInfo(int cnum,uint16 vuid,char *param,char *data, string_set(&Files[i].name,name); break; } + + unbecome_root(True); } desc.errcode=NERR_Success; |