Skip to content

Commit cef9894

Browse files
Improvements
1 parent 03cd560 commit cef9894

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • dissect/target/plugins/os/unix/etc

dissect/target/plugins/os/unix/etc/etc.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ def _sub(self, items: ConfigurationEntry, entry: Path, pattern: str) -> Iterator
5757

5858
@export(record=UnixConfigTreeRecord)
5959
@arg("--glob", dest="pattern", required=False, default="*", type=str, help="Glob-style pattern to search for")
60-
@arg(
61-
"--root", dest="root", required=False, default=Path("/"), type=Path, help="Starting point in configuration tree"
62-
)
63-
def etc(self, pattern: str, root: Path) -> Iterator[UnixConfigTreeRecord]:
64-
for entry, subs, items in self.config_fs.walk(str(root)):
60+
def etc(self, pattern: str) -> Iterator[UnixConfigTreeRecord]:
61+
for entry, subs, items in self.config_fs.walk("/"):
6562
for item in items:
6663
try:
6764
config_object = self.get(str(Path(entry) / Path(item)))

0 commit comments

Comments
 (0)