summaryrefslogtreecommitdiffstats
path: root/source/lib/smbrun.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-02 20:44:50 +0000
committerJeremy Allison <jra@samba.org>2006-02-02 20:44:50 +0000
commit130b5e80f1917a3eb52568ce114af465ad068c52 (patch)
tree5f5186f7190610b4697292e7674c8b9529f7261f /source/lib/smbrun.c
parentd13e343dc7bfa1e30d7b54b59ab202b3f52ea954 (diff)
downloadsamba-130b5e80f1917a3eb52568ce114af465ad068c52.tar.gz
samba-130b5e80f1917a3eb52568ce114af465ad068c52.tar.xz
samba-130b5e80f1917a3eb52568ce114af465ad068c52.zip
r13293: Rather a big patch I'm afraid, but this should fix bug #3347
by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
Diffstat (limited to 'source/lib/smbrun.c')
-rw-r--r--source/lib/smbrun.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/smbrun.c b/source/lib/smbrun.c
index 6d6d7817f1a..4f5525039f5 100644
--- a/source/lib/smbrun.c
+++ b/source/lib/smbrun.c
@@ -58,8 +58,8 @@ outfd (or discard it if outfd is NULL).
int smbrun(const char *cmd, int *outfd)
{
pid_t pid;
- uid_t uid = current_user.uid;
- gid_t gid = current_user.gid;
+ uid_t uid = current_user.ut.uid;
+ gid_t gid = current_user.ut.gid;
/*
* Lose any kernel oplock capabilities we may have.
@@ -189,8 +189,8 @@ sends the provided secret to the child stdin.
int smbrunsecret(const char *cmd, const char *secret)
{
pid_t pid;
- uid_t uid = current_user.uid;
- gid_t gid = current_user.gid;
+ uid_t uid = current_user.ut.uid;
+ gid_t gid = current_user.ut.gid;
int ifd[2];
/*