Skip to content

Commit

Permalink
Consider a block size of zero to be unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
twiggler committed Oct 3, 2024
1 parent 208e6f1 commit 95f540b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/target/tools/fsutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def filetype(path: TargetPath) -> str:
device="?",
inode=s.st_ino,
blocks=s.st_blocks if s.st_blocks is not None else "?",
blksize=s.st_blksize if s.st_blksize is not None else "?",
blksize=s.st_blksize or "?",
nlink=s.st_nlink,
modeord=oct(stat.S_IMODE(s.st_mode)),
modestr=stat_modestr(s),
Expand Down

0 comments on commit 95f540b

Please sign in to comment.