summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--procps/lsof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/lsof.c b/procps/lsof.c
index 21ac85e..9cb8d06 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);
}
}