summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-04-14 13:56:05 -0700
committerJeremy Allison <jra@samba.org>2011-04-14 23:39:55 +0200
commit4389bf4bc94eefe034e7551371e6e43cca8d8bdb (patch)
tree8a6b0ef91a7c5ab845108253703330eaa42efe87 /source3/smbd
parent182eea9ae26804d7f4eedcfa09eef0342ec3db5a (diff)
downloadsamba-4389bf4bc94eefe034e7551371e6e43cca8d8bdb.tar.gz
samba-4389bf4bc94eefe034e7551371e6e43cca8d8bdb.tar.bz2
samba-4389bf4bc94eefe034e7551371e6e43cca8d8bdb.zip
Ensure change_dir_owner_to_parent() can't be raced.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 14 23:39:55 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 04353a1d56..b7c8540da1 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -336,7 +336,7 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
}
become_root();
- ret = SMB_VFS_CHOWN(conn, ".", smb_fname_parent->st.st_ex_uid,
+ ret = SMB_VFS_LCHOWN(conn, ".", smb_fname_parent->st.st_ex_uid,
(gid_t)-1);
unbecome_root();
if (ret == -1) {