We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firejail --ls
I noticed that the --ls command prints negative file sizes for large files (the file has a size of several GB).
--ls
$ firejail --ls=... / ... -rw------- root root -214748364 swap.bin ...
The problem seems to be that it's using a (32bit) int, while st_size is actually of type off_t (which is on x86_64 a long int).
st_size
off_t
long int
firejail/src/firejail/ls.c
Lines 155 to 158 in dd5ae0d
The text was updated successfully, but these errors were encountered:
Fix displaying of large file sizes.
e5cdc27
The most generic way is to use `intmax_t` because we dont't know what is the "parent" type of `off_t`. This fixes netblue30#5982 .
Fix displaying of large file sizes. (#6086)
46c8e93
The most generic way is to use `intmax_t` because we dont't know what is the "parent" type of `off_t`. This fixes #5982 .
RELNOTES: add modif, bugfix, build and contrib items
8f55f6c
Relates to #5982 #6006 #6057 #6059 #6070 #6086 #6087.
Successfully merging a pull request may close this issue.
I noticed that the
--ls
command prints negative file sizes for large files (the file has a size of several GB).The problem seems to be that it's using a (32bit) int, while
st_size
is actually of typeoff_t
(which is on x86_64 along int
).firejail/src/firejail/ls.c
Lines 155 to 158 in dd5ae0d
The text was updated successfully, but these errors were encountered: