vfs: Convert hpuxacl_sys_acl_set_file to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 08:56:53 +0000 (10:56 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:57 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_hpuxacl.c

index a05ca44f2484bc90b81a6cde127ee180b33aa857..7ffb847d6bc2519244ea649da420ab09d85f6072 100644 (file)
@@ -221,9 +221,9 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle,
        DEBUG(10, ("hpuxacl_sys_acl_set_file called for file '%s'\n",
                   name));
 
-       status = create_synthetic_smb_fname(talloc_tos(), name, NULL, NULL,
-                                           &smb_fname);
-       if (!NT_STATUS_IS_OK(status)) {
+       smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL);
+       if (smb_fname == NULL) {
+               status = NT_STATUS_NO_MEMORY;
                goto done;
        }