[git commit] lsof: print fd# too
Denys Vlasenko
vda.linux at googlemail.com
Wed Jun 16 10:49:15 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=57be5daa40c40df411716e22de0795160c88e647
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
lsof_main 179 188 +9
.rodata 103194 103187 -7
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
procps/lsof.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/procps/lsof.c b/procps/lsof.c
index 21ac85ed3..9cb8d066c 100644
--- a/procps/lsof.c
+++ b/procps/lsof.c
@@ -66,7 +66,7 @@ int lsof_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
safe_strncpy(name + baseofs, entry->d_name, 10);
if ((fdlink = xmalloc_readlink(name)) != NULL) {
- printf("%d\t%s\t%s\n", proc->pid, proc->exe, fdlink);
+ printf("%d\t%s\t%s\t%s\n", proc->pid, proc->exe, entry->d_name, fdlink);
free(fdlink);
}
}
More information about the busybox-cvs
mailing list