Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
libcgroup
initd_cgconfig-read-correctly-defaultcgroup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File initd_cgconfig-read-correctly-defaultcgroup.patch of Package libcgroup
From: Robert Milasan <rmilasan@suse.com> Subject: fix defaultcgroup detection b55ce704 (scripts: cgconfig, cleanup) introduced a regression because read is now executed in a subshell so the variables are not visible in the outer context and so defaultcgtoup is never non-empty. Fix the issue by using here text which doesn't involve subshell. [mhocko@suse.cz: tweaked changelog a bit] Signed-off-by: Robert Milasan <rmilasan@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"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor