Skip to content

Commit

Permalink
Make Unix home path a Posix path (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeloe authored Sep 8, 2023
1 parent 946d31a commit ceee369
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dissect/target/plugins/os/unix/_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from struct import unpack
from typing import Iterator, Optional, Union

from flow.record.fieldtypes import posix_path

from dissect.target.filesystem import Filesystem
from dissect.target.helpers.fsutil import TargetPath
from dissect.target.helpers.record import UnixUserRecord
Expand Down Expand Up @@ -59,7 +61,7 @@ def users(self, sessions: bool = False) -> Iterator[UnixUserRecord]:
uid=pwent.get(2),
gid=pwent.get(3),
gecos=pwent.get(4),
home=pwent.get(5),
home=posix_path(pwent.get(5)),
shell=pwent.get(6),
source=passwd_file,
_target=self.target,
Expand Down

0 comments on commit ceee369

Please sign in to comment.