]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: (refactor) make the steps for new_file consistent
authorMasatake YAMATO <yamato@redhat.com>
Mon, 15 Jan 2024 17:50:23 +0000 (02:50 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 2 Feb 2024 19:27:50 +0000 (04:27 +0900)
commit80c8fcfd5185272ab396c464c7fb1ead7d2c4d11
treec9e791e562637dd4bb168f52d0fbf6e5be1a1284
parent28bce81a9a757f7d57f1900894f9c14f8ca3308c
lsfd: (refactor) make the steps for new_file consistent

In parse_maps_line of the original code, we called readlink after stat
for gathering arguments that were passed to new_file().

The order was different from that in collect_file_symlink.
In parse_maps_line, we called stat after readlink.

The difference of the order may make the way of handling
errors of readlink and stat complicated.

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