]> git.pld-linux.org Git - packages/libcgroup.git/commitdiff
- avoid printf-format exploits :)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 8 Feb 2011 14:54:38 +0000 (14:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cgconfig.init -> 1.5

cgconfig.init

index d1c671647222ca6bc2e6a9dcbfeed2b27f922c09..8d79919da3395c028f599c8e98089021ba81cc43 100644 (file)
@@ -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
This page took 0.067875 seconds and 4 git commands to generate.