[Bug 11826] ps pid/ppid/pgid fields truncated when kernel.pid_max > 99999
bugzilla at busybox.net
bugzilla at busybox.net
Fri May 3 07:49:51 UTC 2019
https://bugs.busybox.net/show_bug.cgi?id=11826
Denys Vlasenko <vda.linux at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
Fixing in git:
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -533,7 +533,7 @@ static void format_process(const procps_status_t *ps)
len = out[i].width - len + 1;
if (++i == out_cnt) /* do not pad last field */
break;
- p += sprintf(p, "%*s", len, "");
+ p += sprintf(p, "%*s", len, " "); /* " ", not "", to ensure
separation of fields */
}
printf("%.*s\n", terminal_width, buffer);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list