diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-28 16:25:16 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-29 02:15:23 +0100 |
commit | 9b31f6ab6cce55824f3e62f59061085abc1240db (patch) | |
tree | d9112d0bbc55a1bcb0858a096da2ecd8730ec2fe /source3/smbd/posix_acls.c | |
parent | 4622812a41eb5ce07dd8f74534217e858743883f (diff) | |
download | samba-9b31f6ab6cce55824f3e62f59061085abc1240db.tar.gz samba-9b31f6ab6cce55824f3e62f59061085abc1240db.tar.bz2 samba-9b31f6ab6cce55824f3e62f59061085abc1240db.zip |
Fix bug #7892 - open_file_fchmod() leaves a stale lock.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 29 02:15:23 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/smbd/posix_acls.c')
-rw-r--r-- | source3/smbd/posix_acls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 54fa5bfdfc..880d5b9452 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -3603,7 +3603,7 @@ int try_chown(connection_struct *conn, struct smb_filename *smb_fname, return -1; } - if (!NT_STATUS_IS_OK(open_file_fchmod(NULL, conn, smb_fname, &fsp))) { + if (!NT_STATUS_IS_OK(open_file_fchmod(conn, smb_fname, &fsp))) { return -1; } @@ -3622,7 +3622,7 @@ int try_chown(connection_struct *conn, struct smb_filename *smb_fname, } unbecome_root(); - close_file_fchmod(NULL, fsp); + close_file(NULL, fsp, NORMAL_CLOSE); return ret; } |