for ( ; j; j--)
if (' ' == P->supgid[j])
P->supgid[j] = ',';
- } else
- P->supgid = xstrdup("-");
+ }
continue;
}
case_CapBnd:
P->tid = Pid;
}
+ if (!P->supgid)
+ P->supgid = xstrdup("-");
+
LEAVE(0x220);
}
} else
p->cmdline = NULL;
- if ((flags & PROC_FILLCGROUP) // read /proc/#/cgroup
- && linux_version_code >= LINUX_VERSION(2,6,24)) {
+ if ((flags & PROC_FILLCGROUP)) { // read /proc/#/cgroup
if (flags & PROC_EDITCGRPCVT)
fill_cgroup_cvt(path, p);
else
} else
t->cmdline = NULL;
- if ((flags & PROC_FILLCGROUP) // read /proc/#/task/#/cgroup
- && linux_version_code >= LINUX_VERSION(2,6,24)) {
+ if ((flags & PROC_FILLCGROUP)) { // read /proc/#/task/#/cgroup
if (flags & PROC_EDITCGRPCVT)
fill_cgroup_cvt(path, t);
else