On Thu, Mar 11, 2010 at 01:09:24PM +0100, Dhaval Giani wrote:
> [Please don't drop the list from the cc]
> >> After reading that document, let me know if I can add in your
> >> Signed-off-by on both the patches.
> >>
Ok, I then misunderstood 'let "me" know'.

> I applied your patches. But they were malformed, and I had to apply
> them manually. Can you please setup your mailer not to break patches.
> You can probably use
> http://www.mjmwired.net/kernel/Documentation/email-clients.txt as a
> starting point?

This was from copying my bug report from sourceforge.  Again I apologize
if this wasted your time.

If you need another copy, here you go:

diff --git a/dist/libcgroup.spec.in b/dist/libcgroup.spec.in
index 27ab880..7cab82f 100644
--- a/dist/libcgroup.spec.in
+++ b/dist/libcgroup.spec.in
@@ -55,6 +55,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
 # install config files
 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
 cp samples/cgred.conf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgred.conf
+cp samples/cgconfig.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgconfig
 cp samples/cgconfig.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgconfig.conf
 cp samples/cgrules.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgrules.conf

@@ -90,6 +91,7 @@ fi
 %files
 %defattr(-,root,root,-)
 %config(noreplace) %{_sysconfdir}/sysconfig/cgred.conf
+%config(noreplace) %{_sysconfdir}/sysconfig/cgconfig
 %config(noreplace) %{_sysconfdir}/cgconfig.conf
 %config(noreplace) %{_sysconfdir}/cgrules.conf
 /%{_lib}/libcgroup.so.*

diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in
index 261c7d8..99608a5 100644
--- a/scripts/init.d/cgconfig.in
+++ b/scripts/init.d/cgconfig.in
@@ -58,7 +58,7 @@ create_default_groups() {
         if [ -f /etc/cgrules.conf ]
         then
             read user ctrl defaultcgroup <<< \
-                `grep -m1 ^\* /etc/cgrules.conf`
+                `grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
             if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
             then
                 log_warning_msg "/etc/cgrules.conf incorrect"

Signed-off-with-hugs-and-kisses-please-don't-hate-my-patches-by: Chris Tasma 
<[email protected]>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to