Page MenuHomeFreeBSD

D47561.diff
No OneTemporary

D47561.diff

diff --git a/bin/ps/ps.c b/bin/ps/ps.c
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1268,7 +1268,6 @@
saveuser(KINFO *ki)
{
char tdname[COMMLEN + 1];
- char *argsp;
ki->ki_valid = 1;
@@ -1278,14 +1277,11 @@
if (needcomm) {
if (ki->ki_p->ki_stat == SZOMB) {
ki->ki_args = strdup("<defunct>");
- } else if (ki->ki_p->ki_args != NULL) {
+ } else {
(void)snprintf(tdname, sizeof(tdname), "%s%s",
ki->ki_p->ki_tdname, ki->ki_p->ki_moretdname);
ki->ki_args = fmt(kvm_getargv, ki,
ki->ki_p->ki_comm, tdname, COMMLEN * 2 + 1);
- } else {
- asprintf(&argsp, "(%s)", ki->ki_p->ki_comm);
- ki->ki_args = argsp;
}
if (ki->ki_args == NULL)
xo_errx(1, "malloc failed");

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 11:00 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14637024
Default Alt Text
D47561.diff (712 B)

Event Timeline