commit: e757ab1145cc4c6ce7b2c2005220ae59792e218e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu Apr 23 12:40:28 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Apr 23 12:40:28 2020 +0000 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=e757ab11
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 <AT> gentoo.org> ChangeLog | 5 +++++ modules/rc.eselect | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 86ffd88..d037d6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-04-23 Ulrich Müller <u...@gentoo.org> + + * modules/rc.eselect (is_script): Test whether the script is a + regular file, bug 718920. + 2019-11-28 Ulrich Müller <u...@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) ]]