]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: split new_file(), remove map_file_data
authorKarel Zak <kzak@redhat.com>
Mon, 20 Sep 2021 10:28:50 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
commit99ce42501ce4077359b014c3e20da33b83c02d85
tree7c2881f59c8aae2078c17f6b90486df89b8b49e4
parent618db964984490af613c90c4d6e584090e1298c4
lsfd: split new_file(), remove map_file_data

Don't initialize entire 'struct file' in one step. It seems better to
use different ways according to file source (map, symlink, etc.).

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