mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:smbd:open_file: use a more natural check.
As suggested by Jeremy Allison <jra@samba.org>. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
c7c1f6490e
commit
9da09b52e8
@ -835,7 +835,9 @@ static NTSTATUS open_file(files_struct *fsp,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
if (NT_STATUS_EQUAL(status,
|
||||
NT_STATUS_OBJECT_NAME_NOT_FOUND))
|
||||
{
|
||||
DEBUG(10, ("open_file: "
|
||||
"file %s vanished since we "
|
||||
"checked for existence.\n",
|
||||
|
Loading…
Reference in New Issue
Block a user