Skip to content

Commit

Permalink
Fix issue with pathless config items
Browse files Browse the repository at this point in the history
  • Loading branch information
cecinestpasunepipe committed Aug 5, 2024
1 parent 5d19f13 commit 1eac540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/target/plugins/os/unix/etc/etc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _sub(self, items: ConfigurationEntry, entry: Path, pattern: str) -> Iterator
if fnmatch.fnmatch(path, pattern):
data = {
"_target": self.target,
"source": self.target.fs.path(config_entry.entry.path),
"source": self.target.fs.path(config_entry.entry.path if hasattr(config_entry,"entry") else path),
"path": path,
"key": key,
"value": value,
Expand Down

0 comments on commit 1eac540

Please sign in to comment.