From: Marco d'Itri Date: Tue, 7 Aug 2007 08:39:07 +0000 (+0200) Subject: rules_generator: fix write_cd_rules when similar names exist in the root directory X-Git-Tag: 174~1863 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0837c28e9b3bc1fc42ed0d4212abdddd3277e1fa;ds=sidebyside rules_generator: fix write_cd_rules when similar names exist in the root directory The argument to find_all_rules must be quoted or it will be subject to shell expansion, which will happen if in the root directory there are mount points with the same base name. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407738 for details. --- diff --git a/extras/rule_generator/write_cd_rules b/extras/rule_generator/write_cd_rules index 1dbe6b70d..d74b20128 100644 --- a/extras/rule_generator/write_cd_rules +++ b/extras/rule_generator/write_cd_rules @@ -16,7 +16,7 @@ RULES_FILE="/etc/udev/rules.d/70-persistent-cd.rules" . /lib/udev/rule_generator.functions find_next_available() { - raw_find_next_available "$(find_all_rules 'SYMLINK+=' $1)" + raw_find_next_available "$(find_all_rules 'SYMLINK+=' "$1")" } write_rule() {