Fix an obvious error where we were converting a UNIX error to an NT STATUS but not...
authorRichard Sharpe <rsharpe@samba.org>
Thu, 24 Mar 2016 04:56:30 +0000 (21:56 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 24 Mar 2016 21:57:16 +0000 (22:57 +0100)
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dosmode.c

index 60761c2b306177180e30215e02b884c8395801a3..638299dbf15721456f23a61e2587f08dc40ae020 100644 (file)
@@ -1035,7 +1035,7 @@ NTSTATUS set_create_timespec_ea(connection_struct *conn,
 
        ret = file_set_dosmode(conn, smb_fname, dosmode, NULL, false);
        if (ret == -1) {
-               map_nt_error_from_unix(errno);
+               return map_nt_error_from_unix(errno);
        }
 
        DEBUG(10,("set_create_timespec_ea: wrote create time EA for file %s\n",