durable reconnect: fix return code if SMB_VFS_OPEN failed.
authorMichael Adam <obnox@samba.org>
Sat, 18 Feb 2012 15:38:57 +0000 (16:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:53 +0000 (18:41 +0200)
source3/smbd/smb2_create.c

index 4fdb52e91ebbea5200ef387e4e169f9dcea732e8..93edc345673c6c2cde83e01b1f3230db13835208 100644 (file)
@@ -539,8 +539,8 @@ DEBUG(0, ("OBNOX - durable_reconnect: new fsp created (%s:%s)\n", __location__,
                                   sharemode_lock->data->share_modes[0].flags,
                                   0 /* mode */);
        if (fsp->fh->fd == -1) {
-               /* ... */
-               return NT_STATUS_UNSUCCESSFUL; // TODO ERROR CODE?
+               status = map_nt_error_from_unix(errno);
+               return status;
        }
 
        /* - release the sharemode lock: this writes the changes */