FreeBSD Bugzilla – Attachment 115009 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]
file.diff
file.diff (text/plain), 1.60 KB, created by
Alter
on 2011-05-02 17:00:19 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alter
Created:
2011-05-02 17:00:19 UTC
Size:
1.60 KB
patch
obsolete
>diff -crN orig/usr.bin/sockstat/sockstat.c new/usr.bin/sockstat/sockstat.c >*** orig/usr.bin/sockstat/sockstat.c Wed Apr 20 10:38:46 2011 >--- new/usr.bin/sockstat/sockstat.c Wed Apr 20 10:38:46 2011 >*************** >*** 587,610 **** > pos += xprintf("%lu", (u_long)xf->xf_uid); > else > pos += xprintf("%s", pwd->pw_name); >! while (pos < 9) > pos += xprintf(" "); >! pos += xprintf("%.10s", getprocname(xf->xf_pid)); >! while (pos < 20) > pos += xprintf(" "); >! pos += xprintf("%lu", (u_long)xf->xf_pid); >! while (pos < 26) > pos += xprintf(" "); >! pos += xprintf("%d", xf->xf_fd); >! while (pos < 33) > pos += xprintf(" "); >! pos += xprintf("%s", s->protoname); > if (s->vflag & INP_IPV4) > pos += xprintf("4"); > if (s->vflag & INP_IPV6) > pos += xprintf("6"); >! while (pos < 40) > pos += xprintf(" "); > switch (s->family) { > case AF_INET: > case AF_INET6: >--- 587,611 ---- > pos += xprintf("%lu", (u_long)xf->xf_uid); > else > pos += xprintf("%s", pwd->pw_name); >! while (pos < 8) > pos += xprintf(" "); >! pos += xprintf(" %.10s", getprocname(xf->xf_pid)); >! while (pos < 19) > pos += xprintf(" "); >! pos += xprintf(" %lu", (u_long)xf->xf_pid); >! while (pos < 25) > pos += xprintf(" "); >! pos += xprintf(" %d", xf->xf_fd); >! while (pos < 32) > pos += xprintf(" "); >! pos += xprintf(" %s", s->protoname); > if (s->vflag & INP_IPV4) > pos += xprintf("4"); > if (s->vflag & INP_IPV6) > pos += xprintf("6"); >! while (pos < 39) > pos += xprintf(" "); >+ pos += xprintf(" "); > switch (s->family) { > case AF_INET: > case AF_INET6:
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