Fix issue with defaultcgroup not read properly from /etc/cgrules.conf. Signed-off-by: Robert Milasan <rmila...@suse.com>
Index: libcgroup-0.37.1/scripts/init.d/cgconfig.in =================================================================== --- libcgroup-0.37.1.orig/scripts/init.d/cgconfig.in +++ libcgroup-0.37.1/scripts/init.d/cgconfig.in @@ -55,8 +55,8 @@ create_default_groups() { defaultcgroup= if [ -f /etc/cgrules.conf ]; then - grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf | \ - read user ctrl defaultcgroup + read user ctrl defaultcgroup <<< \ + $(grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf) if [ -n "$defaultcgroup" -a "$defaultcgroup" = "*" ]; then log_warning_msg "/etc/cgrules.conf incorrect" log_warning_msg "Overriding it" -- Robert Milasan L3 Support Engineer SUSE Linux (http://www.suse.com) email: rmila...@suse.com GPG fingerprint: B6FE F4A8 0FA3 3040 3402 6FE7 2F64 167C 1909 6D1A ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel