pysmbd: Convert set_nt_acl_conn to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 10:06:51 +0000 (12:06 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:00 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/pysmbd.c

index 873feadb792bd526485e6f4ceabfc2162b0889d5..c1d3b4bc794fd2e2f41d0f5406dfe7c3c2b0f7e9 100644 (file)
@@ -130,12 +130,11 @@ static NTSTATUS set_nt_acl_conn(const char *fname,
           so set our umask to 0 */
        saved_umask = umask(0);
 
-       status = create_synthetic_smb_fname_split(fsp, fname, NULL,
-                                                 &smb_fname);
-       if (!NT_STATUS_IS_OK(status)) {
+       smb_fname = synthetic_smb_fname_split(fsp, fname, NULL);
+       if (smb_fname == NULL) {
                TALLOC_FREE(frame);
                umask(saved_umask);
-               return status;
+               return NT_STATUS_NO_MEMORY;
        }
 
        fsp->fsp_name = smb_fname;