[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-336-gfa2876b

Ville Skyttä ville.skytta at iki.fi
Sun May 29 16:03:01 UTC 2011


The following commit has been merged in the master branch:
commit fa2876b51dd4542adb9ffc8e0da61462b1001eb9
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun May 29 19:02:13 2011 +0300

    crontab: Use /sys/fs/selinux and /selinux instead of /etc/selinux to find out if SELinux is around.

diff --git a/completions/crontab b/completions/crontab
index 1e21f82..e043a11 100644
--- a/completions/crontab
+++ b/completions/crontab
@@ -16,7 +16,7 @@ _crontab()
 
     local -A opts=( [-u]= [-l]= [-r]= [-e]= )
     [[ $OSTYPE == *linux* ]] && opts[-i]=
-    [ -e /etc/selinux ] && opts[-s]=
+    [[ -d /sys/fs/selinux || -d /selinux ]] && opts[-s]=
 
     local i
     for (( i=0; i < ${#words[@]}-1; i++ )); do

-- 
bash-completion



More information about the Bash-completion-commits mailing list