[arch-general] [PATCH 17/48] Quote daemon names.

Victor Lowther victor.lowther at gmail.com
Wed Jun 30 17:47:43 EDT 2010


Someday, someone may have a daemon name with a space in it.
---
 rc.multi |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rc.multi b/rc.multi
index ec6fda6..660f649 100755
--- a/rc.multi
+++ b/rc.multi
@@ -15,8 +15,8 @@ run_hook multi_start
 for daemon in "${DAEMONS[@]}"; do
     case ${daemon:0:1} in
         '!') continue;;     # Skip this daemon.
-        '@') start_daemon_bkgd ${daemon#@};;
-        *)   start_daemon $daemon;;
+        '@') start_daemon_bkgd "${daemon#@}";;
+        *)   start_daemon "$daemon";;
     esac
 done
 
-- 
1.7.1



More information about the arch-general mailing list