From 4389bf4bc94eefe034e7551371e6e43cca8d8bdb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 14 Apr 2011 13:56:05 -0700 Subject: Ensure change_dir_owner_to_parent() can't be raced. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Apr 14 23:39:55 CEST 2011 on sn-devel-104 --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/open.c') 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) { -- cgit