← Commit list

57be5daa4

Denys Vlasenko
Denys Vlasenko
2021-06-16
SUCCESS Duration: 155s

Subject

lsof: print fd# too

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/lsof.c+1 -1
@@ -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);
}
}