From: Harald Hoyer Date: Thu, 22 Sep 2011 14:14:38 +0000 (+0200) Subject: dracut-functions: inst_rules() add missing "" X-Git-Tag: 014~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08769b7f8a9efc57cd95d1f81e8aaf1a48db0d28;p=thirdparty%2Fdracut.git dracut-functions: inst_rules() add missing "" --- diff --git a/dracut-functions b/dracut-functions index 18a2e8929..550880975 100755 --- a/dracut-functions +++ b/dracut-functions @@ -474,7 +474,7 @@ inst_rules() { inst_dir "/lib/udev/rules.d" inst_dir "$_target" for _rule in "$@"; do - if [ "${rule#/}" = $rule ]; then + if [ "${rule#/}" = "$rule" ]; then for r in /lib/udev/rules.d /etc/udev/rules.d; do if [[ -f $r/$_rule ]]; then _found="$r/$_rule"