* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid

success only on Samba shares.
	* mount.cc (fs_info::update): Drop has_buggy_basic_info flag for
	NcFsd.
	* syscalls.cc (unlink_nt): Fix typo in comment.
This commit is contained in:
Corinna Vinschen
2011-10-21 17:43:00 +00:00
parent 2cd3283c8f
commit 22e671336e
4 changed files with 13 additions and 4 deletions

View File

@ -1727,7 +1727,8 @@ fhandler_disk_file::rmdir ()
&fbi);
if (!NT_SUCCESS (status) && q_status == STATUS_OBJECT_NAME_NOT_FOUND)
status = STATUS_SUCCESS;
else if (NT_SUCCESS (status) && NT_SUCCESS (q_status))
else if (pc.fs_is_samba ()
&& NT_SUCCESS (status) && NT_SUCCESS (q_status))
status = STATUS_DIRECTORY_NOT_EMPTY;
}
if (!NT_SUCCESS (status))