NT_STATUS_OBJECT_NAME_NOT_FOUND also means "no streams around :-)"
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 13:44:07 +0000 (14:44 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 13:44:39 +0000 (14:44 +0100)
source/smbd/open.c

index ad221c3227d0eedb4307c5729358746a20f4d8a4..f55728665fb1e25351dc69f221b2be3902c5702a 100644 (file)
@@ -2464,7 +2464,8 @@ static NTSTATUS open_streams_for_delete(connection_struct *conn,
        status = SMB_VFS_STREAMINFO(conn, NULL, fname, talloc_tos(),
                                    &num_streams, &stream_info);
 
-       if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
+       if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)
+           || NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
                DEBUG(10, ("no streams around\n"));
                TALLOC_FREE(frame);
                return NT_STATUS_OK;