summaryrefslogtreecommitdiffstats
path: root/source/smbd/open.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/smbd/open.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/smbd/open.c')
-rw-r--r--source/smbd/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c
index dd2731c8973..15e814aae3c 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -1678,6 +1678,7 @@ files_struct *open_file_ntcreate(connection_struct *conn,
}
/* Note that here we set the *inital* delete on close flag,
not the regular one. */
+ set_delete_on_close_token(lck, &current_user.ut);
lck->initial_delete_on_close = True;
lck->modified = True;
}
@@ -1983,6 +1984,7 @@ files_struct *open_directory(connection_struct *conn,
return NULL;
}
+ set_delete_on_close_token(lck, &current_user.ut);
lck->initial_delete_on_close = True;
lck->modified = True;
}