diff options
author | Marco d'Itri <md@Linux.IT> | 2007-08-07 10:39:07 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-07 10:39:07 +0200 |
commit | 0837c28e9b3bc1fc42ed0d4212abdddd3277e1fa (patch) | |
tree | 3a194f577f6e8f736113154b96bb4026e91aae52 /extras/rule_generator | |
parent | 14e1e49484401d573eac1a99002242dbf7c072f0 (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_rules | 2 |
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() { |