svn commit: samba r20491 - in branches/SAMBA_3_0_24/source/smbd: .
jra at samba.org
jra at samba.org
Tue Jan 2 23:57:27 GMT 2007
Author: jra
Date: 2007-01-02 23:57:27 +0000 (Tue, 02 Jan 2007)
New Revision: 20491
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20491
Log:
Janitor for Volker :
"Get rid of a redundant !NT_STATUS_IS_OK(status)"
Jeremy.
Modified:
branches/SAMBA_3_0_24/source/smbd/nttrans.c
Changeset:
Modified: branches/SAMBA_3_0_24/source/smbd/nttrans.c
===================================================================
--- branches/SAMBA_3_0_24/source/smbd/nttrans.c 2007-01-02 23:51:00 UTC (rev 20490)
+++ branches/SAMBA_3_0_24/source/smbd/nttrans.c 2007-01-02 23:57:27 UTC (rev 20491)
@@ -656,8 +656,8 @@
status = can_delete(conn, fname, file_attributes, bad_path, True);
/* We're only going to fail here if it's access denied, as that's the
only error we care about for "can we delete this ?" questions. */
- if (!NT_STATUS_IS_OK(status) && (NT_STATUS_EQUAL(status,NT_STATUS_ACCESS_DENIED) ||
- NT_STATUS_EQUAL(status,NT_STATUS_CANNOT_DELETE))) {
+ if (NT_STATUS_EQUAL(status,NT_STATUS_ACCESS_DENIED) ||
+ NT_STATUS_EQUAL(status,NT_STATUS_CANNOT_DELETE)) {
restore_case_semantics(conn, file_attributes);
END_PROFILE(SMBntcreateX);
return ERROR_NT(NT_STATUS_ACCESS_DENIED);
@@ -1284,8 +1284,8 @@
status = can_delete(conn, fname, file_attributes, bad_path, True);
/* We're only going to fail here if it's access denied, as that's the
only error we care about for "can we delete this ?" questions. */
- if (!NT_STATUS_IS_OK(status) && (NT_STATUS_EQUAL(status,NT_STATUS_ACCESS_DENIED) ||
- NT_STATUS_EQUAL(status,NT_STATUS_CANNOT_DELETE))) {
+ if (NT_STATUS_EQUAL(status,NT_STATUS_ACCESS_DENIED) ||
+ NT_STATUS_EQUAL(status,NT_STATUS_CANNOT_DELETE)) {
restore_case_semantics(conn, file_attributes);
return ERROR_NT(status);
}
More information about the samba-cvs
mailing list