summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorVlad Glagolev2015-04-22 11:59:59 +0300
committerVlad Glagolev2015-04-22 11:59:59 +0300
commitf5aaec3e15bbd63e6b21454982a5f353755f2fb6 (patch)
tree92b92d75ff634476473a0e29a9122cfd09328876 /FUNCTIONS
parente56a7d51157cbf2dde47515a5abd8cf17a5d2313 (diff)
do not force noexec option in check_tmp_noexec()
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS2
1 files changed, 1 insertions, 1 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 261eb7a522..179b05a2aa 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -730,7 +730,7 @@ function check_tmp_noexec() {
message -n "${MESSAGE_COLOR}Remounting $1 with exec option (required for build)... " &&
mount -o exec,remount $1 &&
message "done${DEFAULT_COLOR}"
- else
+ elif awk -v tmp=$1 '{ if ($2 == tmp) print $4 }' < /etc/fstab | grep -q noexec; then
message -n "${MESSAGE_COLOR}Restoring $1 mount options... " &&
mount -o noexec,remount $1 &&
message "done${DEFAULT_COLOR}"