Last 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
[ira/wip.git] / source3 / modules / vfs_hpuxacl.c
index abc80dcd9c2cddf728f03c0b6250300e42526beb..5a54f79da360f556b6d8146030bde0ed1b6fb7fa 100644 (file)
@@ -216,6 +216,7 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle,
        HPUX_ACL_T hpux_acl = NULL;
        int count;
        struct smb_filename *smb_fname = NULL;
+       NTSTATUS status;
        
        DEBUG(10, ("hpuxacl_sys_acl_set_file called for file '%s'\n",
                   name));
@@ -254,7 +255,12 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle,
         * that has _not_ been specified in "type" from the file first 
         * and concatenate it with the acl provided.
         */
-       if (SMB_VFS_STAT(handle->conn, smb_fname) != 0) {
+       if (lp_posix_pathnames()) {
+               ret = SMB_VFS_LSTAT(handle->conn, smb_fname);
+       } else {
+               ret = SMB_VFS_STAT(handle->conn, smb_fname);
+       }
+       if (ret != 0) {
                DEBUG(10, ("Error in stat call: %s\n", strerror(errno)));
                goto done;
        }