]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: avoid accessing an uninitialized value
authorMasatake YAMATO <yamato@redhat.com>
Thu, 3 Oct 2024 06:17:01 +0000 (15:17 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 3 Oct 2024 06:20:43 +0000 (15:20 +0900)
commitea0a1076181f27af39a0653f08fbc705e2b784ce
tree6cc99b6aac29e7118daaa77294221c018fdcb3b2
parent8b0b4967745c8917d1c8e06c02362149328d01e1
lsfd: avoid accessing an uninitialized value

sb, a local variable in collect_file_symlink, accessed
at

bool is_socket = (sb.st_mode & S_IFMT) == S_IFSOCK;

was not initialized if copy_file path is taken.

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