summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
authorMarco d'Itri <md@Linux.IT>2007-08-07 10:39:07 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-07 10:39:07 +0200
commit0837c28e9b3bc1fc42ed0d4212abdddd3277e1fa (patch)
tree3a194f577f6e8f736113154b96bb4026e91aae52 /extras/rule_generator
parent14e1e49484401d573eac1a99002242dbf7c072f0 (diff)
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.
Diffstat (limited to 'extras/rule_generator')
-rw-r--r--extras/rule_generator/write_cd_rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/rule_generator/write_cd_rules b/extras/rule_generator/write_cd_rules
index 1dbe6b70de..d74b20128d 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() {