Blame SOURCES/libcgroup-0.40.rc1-templates-fix.patch

705669
diff -up libcgroup-0.41/src/api.c.templates-fix libcgroup-0.41/src/api.c
705669
--- libcgroup-0.41/src/api.c.templates-fix	2014-01-13 21:04:36.933747000 +0100
705669
+++ libcgroup-0.41/src/api.c	2014-01-13 21:16:44.478580105 +0100
705669
@@ -2974,10 +2974,10 @@ int cgroup_change_cgroup_flags(uid_t uid
da3e87
 						available, "%d", pid);
da3e87
 					break;
705669
 				case 'p':
da3e87
-					if(procname) {
da3e87
+					if(procname && strlen(basename(procname))) {
da3e87
 						written = snprintf(newdest + j,
da3e87
 							available, "%s",
da3e87
-							procname);
da3e87
+							basename(procname));
da3e87
 					} else {
da3e87
 						written = snprintf(newdest + j,
da3e87
 							available, "%d", pid);