aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-07-27 02:17:03 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-07-27 02:17:03 +0000
commit3db5ad738151d27001658d570bce0c61648fc2cc (patch)
treefcb9a69ac7f3896e0636f929fd87f13828c51852 /rc.d/rc
parent02315ee166c1625d9524a783a1ad49383a4623db (diff)
downloadinitscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar
initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.gz
initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.bz2
initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.xz
initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.zip
Consistently exclude backup files when globbing
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-xrc.d/rc8
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.d/rc b/rc.d/rc
index 626fcaac..9fc6eba5 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -12,13 +12,7 @@ check_runlevel ()
{
# Check if the file exists at all.
[ -x "$1" ] || return 1
-
- # Reject backup files and files generated by rpm.
- case "$1" in
- *.rpmsave|*.rpmorig|*.rpmnew|*~|*.orig)
- return 1
- ;;
- esac
+ is_ignored_file "$1" && return 1
return 0
}