FreeBSD Bugzilla – Attachment 145337 Details for
Bug 156768
sockstat(1): missing spaces between long fields in output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Always print space after procname
sockstat.procname.diff (text/plain), 599 bytes, created by
Dmitry Sivachenko
on 2014-08-04 10:22:22 UTC
(
hide
)
Description:
Always print space after procname
Filename:
MIME Type:
Creator:
Dmitry Sivachenko
Created:
2014-08-04 10:22:22 UTC
Size:
599 bytes
patch
obsolete
>Index: sockstat.c >=================================================================== >--- sockstat.c (revision 265947) >+++ sockstat.c (working copy) >@@ -681,10 +681,10 @@ > if ((pwd = getpwuid(xf->xf_uid)) == NULL) > pos += xprintf("%lu ", (u_long)xf->xf_uid); > else >- pos += xprintf("%s ", pwd->pw_name); >+ pos += xprintf("%.8s ", pwd->pw_name); > while (pos < 9) > pos += xprintf(" "); >- pos += xprintf("%.10s", getprocname(xf->xf_pid)); >+ pos += xprintf("%.10s ", getprocname(xf->xf_pid)); > while (pos < 20) > pos += xprintf(" "); > pos += xprintf("%lu ", (u_long)xf->xf_pid);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 156768
:
115009
| 145337