]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fill UID column with the process's uid
authorMasatake YAMATO <yamato@redhat.com>
Mon, 11 Oct 2021 21:27:58 +0000 (06:27 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 11 Oct 2021 21:44:34 +0000 (06:44 +0900)
commit35186bf0b1eec951814e6535897eb03860d04740
tree3cc8c5bd4350dcb1d8477053b2475bcf2d948953
parentf439236f2c93de58d327593176d4efb44209f537
lsfd: fill UID column with the process's uid

The original code fills the column with the owner id of the executable
file. Because lsfd fills USER column field by decoding UID column, the
USER in lsfd meant the owner name of the executable.

On the other hand, lsof fills the USER column with the process's user
name.

To avoid users confusing, this change makes lsfd do the same lsof;
filling UID column with the process's uid.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c