From: Elan Ruusamäe Date: Tue, 8 Feb 2011 14:54:38 +0000 (+0000) Subject: - avoid printf-format exploits :) X-Git-Tag: auto/th/libcgroup-0_37-2~13 X-Git-Url: https://git.pld-linux.org/?p=packages%2Flibcgroup.git;a=commitdiff_plain;h=fcf1aa3072326ed33009e0a10b2741ba32ee81ea - avoid printf-format exploits :) Changed files: cgconfig.init -> 1.5 --- diff --git a/cgconfig.init b/cgconfig.init index d1c6716..8d79919 100644 --- a/cgconfig.init +++ b/cgconfig.init @@ -30,7 +30,7 @@ create_default_groups() { # Find all mounted subsystems and create comma-separated list # of controllers. # - controllers=`lssubsys 2>/dev/null | awk '{ if (v) v=v","$0 ; else v=$0 } END { printf v }'` + controllers=$(lssubsys 2>/dev/null | awk '{ if (v) v=v","$0 ; else v=$0 } END { printf "%s", v }') # # Create the default group, ignore errors when the default group