Fix set_posix_lock check which had been reversed in the recent
authorJeremy Allison <jra@samba.org>
Tue, 14 Jul 2009 00:17:37 +0000 (17:17 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 14 Jul 2009 00:17:37 +0000 (17:17 -0700)
changes.
Jeremy.

source3/smbd/trans2.c

index 4dd03750673bcaa946f8ea2e0264fb2918b330b5..a862c1466fc74949b3c2e05c06ed465946431fcd 100644 (file)
@@ -7277,7 +7277,7 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
 
                case SMB_SET_POSIX_LOCK:
                {
-                       if (fsp) {
+                       if (!fsp) {
                                return NT_STATUS_INVALID_LEVEL;
                        }
                        status = smb_set_posix_lock(conn, req,