]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: cleanup collect_outofbox_files stuff
authorKarel Zak <kzak@redhat.com>
Wed, 8 Sep 2021 09:22:15 +0000 (11:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
commitc77e52b6663afee08044adf9c4cbadfb3eeab308
tree83982ca837a1e3c944146d2706b95b0f0a971adf
parent95b4a78918ccc6f990026f54b3e239c3223629d6
lsfd: cleanup collect_outofbox_files stuff

* use path_cxt
* call fstat() only once (no extra call to get uid)
* reduce names to variables to get function calls to one line ;-)
* fix use of procfs_process_get_cmdname()

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsfd.c