Skip to content

Commit

Permalink
Use lstat instead of stat in target-mount (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper committed Aug 17, 2023
1 parent b8e3d32 commit 4381ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/target/helpers/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def getattr(self, path: str, fh: Optional[int] = None) -> dict:
fe = self._get(path)

try:
st = fe.stat()
st = fe.lstat()
return dict(
(key, getattr(st, key))
for key in ("st_atime", "st_ctime", "st_gid", "st_mode", "st_mtime", "st_nlink", "st_size", "st_uid")
Expand Down

0 comments on commit 4381ca9

Please sign in to comment.