[patch] ps -Z can not be used when ENABLE_DESKTOP is enabled
Denis Vlasenko
vda.linux at googlemail.com
Sat May 12 03:23:58 PDT 2007
On Saturday 12 May 2007 12:17, Denis Vlasenko wrote:
> See attached.
func_label has 2 bugs, replace with:
static void func_label(char *buf, int size, const procps_status_t *ps)
{
char procfilename[sizeof("/proc//attr/current") + sizeof(int)*3];
int sz;
sprintf(procfilename, "/proc/%d/attr/current", ps->pid);
sz = open_read_close(procfilename, buf, size);
buf[sz > 0 ? sz : 0] = '\0';
}
Sorry.
--
vda
More information about the busybox
mailing list