diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-02-26 09:14:54 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-02-26 09:31:20 +0100 |
commit | 69631a215b655415477ee0e71a08beca86dd5b2f (patch) | |
tree | 449a4fc269deebf002b0886e90a8eaca19895bd9 /source4/ntvfs | |
parent | 476c9d10bb5f6b8003e19e458cc8879c2078ad0a (diff) | |
download | samba-69631a215b655415477ee0e71a08beca86dd5b2f.tar.gz samba-69631a215b655415477ee0e71a08beca86dd5b2f.tar.bz2 samba-69631a215b655415477ee0e71a08beca86dd5b2f.zip |
pvfs_setfileinfo_rename: map DELETE_PENDING to ACCESS_DENIED
This is needed as odb_can_open/pvfs_can_delete changed the return value.
metze
(This used to be commit 1ba0b9a8f1f84c7c949b3d184843462b87446707)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/posix/pvfs_setfileinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c index fbbb8c2d4b..c6d014a72f 100644 --- a/source4/ntvfs/posix/pvfs_setfileinfo.c +++ b/source4/ntvfs/posix/pvfs_setfileinfo.c @@ -152,6 +152,9 @@ static NTSTATUS pvfs_setfileinfo_rename(struct pvfs_state *pvfs, } status = pvfs_can_delete(pvfs, req, name2, NULL); + if (NT_STATUS_EQUAL(status, NT_STATUS_DELETE_PENDING)) { + return NT_STATUS_ACCESS_DENIED; + } if (NT_STATUS_EQUAL(status, NT_STATUS_SHARING_VIOLATION)) { return NT_STATUS_ACCESS_DENIED; } |