s3: smbd: Remove many common uses of lp_posix_pathnames().
[samba.git] / source3 / modules / vfs_acl_common.c
index d21c16707c849747d39e2ec0b6dc88cf8afb6047..c907b0fdc953edb76fa20d1057bf924c21576eac 100644 (file)
@@ -1138,7 +1138,7 @@ static int chmod_acl_module_common(struct vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname,
                        mode_t mode)
 {
-       if (lp_posix_pathnames()) {
+       if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) {
                /* Only allow this on POSIX pathnames. */
                return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode);
        }
@@ -1159,7 +1159,7 @@ static int chmod_acl_acl_module_common(struct vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname,
                        mode_t mode)
 {
-       if (lp_posix_pathnames()) {
+       if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) {
                /* Only allow this on POSIX pathnames. */
                return SMB_VFS_NEXT_CHMOD_ACL(handle, smb_fname, mode);
        }