Skip to content
Commit aca9b701 authored by Markus Knetschke's avatar Markus Knetschke Committed by Pavel Emelyanov
Browse files

change the return value of get_fs_type from int to long.



The field fs_type field of fd_parms is already long
Additionally the glibc man page says "Using unsigned int for such variables suffices on most systems." referring the minimum width of variables holding fs_type
There are already fs_types who sets the highest bit (CIFS, BTRFS HPFS...) which interfere with the error check in dump_one_reg_file_cond (fs_type < 0) through the cast into signed int and after this into long

Fixes error while dumping programs on a btrfs partition

Signed-off-by: default avatarMarkus Knetschke <markus.knetschke@gmail.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e8796f44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment