1
0
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:
Michael Adam 2014-09-10 21:58:04 +02:00 committed by Jeremy Allison
parent c7c1f6490e
commit 9da09b52e8

View File

@ -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",