diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-04-23 14:40:28 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-04-23 14:40:28 +0200 |
commit | e757ab1145cc4c6ce7b2c2005220ae59792e218e (patch) | |
tree | 78de80c0565f7164e30d7c06147fe3b945c84d08 | |
parent | Update version to 1.4.16. (diff) | |
download | eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.tar.gz eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.tar.bz2 eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.zip |
rc.eselect: Test for regular file.
* modules/rc.eselect (is_script): Test whether the script is a
regular file, bug 718920.
Bug: https://bugs.gentoo.org/718920
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | modules/rc.eselect | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2020-04-23 Ulrich Müller <ulm@gentoo.org> + + * modules/rc.eselect (is_script): Test whether the script is a + regular file, bug 718920. + 2019-11-28 Ulrich Müller <ulm@gentoo.org> * configure.ac: Update version to 1.4.16. diff --git a/modules/rc.eselect b/modules/rc.eselect index 4a3c16d..a606cfa 100644 --- a/modules/rc.eselect +++ b/modules/rc.eselect @@ -35,6 +35,7 @@ is_script() { [[ -n ${file} \ && ${file%%.sh} = "${file}" \ && ${file%%\~} = "${file}" \ + && -f ${file} \ && -x ${file} ]] \ && read line <"${file}" \ && [[ ${line} =~ ^#!.*(runscript|openrc-run) ]] |