dissect.target 3.19.dev5__py3-none-any.whl → 3.19.dev7__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dissect/target/helpers/configutil.py +3 -3
- dissect/target/plugins/os/unix/etc/etc.py +1 -4
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/METADATA +1 -1
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/RECORD +9 -9
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/LICENSE +0 -0
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/WHEEL +0 -0
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.19.dev5.dist-info → dissect.target-3.19.dev7.dist-info}/top_level.txt +0 -0
@@ -748,13 +748,13 @@ def parse(path: Union[FilesystemEntry, TargetPath], hint: Optional[str] = None,
|
|
748
748
|
FileNotFoundError: If the ``path`` is not a file.
|
749
749
|
"""
|
750
750
|
|
751
|
-
if not path.is_file(follow_symlinks=True):
|
752
|
-
raise FileNotFoundError(f"Could not parse {path} as a dictionary.")
|
753
|
-
|
754
751
|
entry = path
|
755
752
|
if isinstance(path, TargetPath):
|
756
753
|
entry = path.get()
|
757
754
|
|
755
|
+
if not entry.is_file(follow_symlinks=True):
|
756
|
+
raise FileNotFoundError(f"Could not parse {path} as a dictionary.")
|
757
|
+
|
758
758
|
options = ParserOptions(*args, **kwargs)
|
759
759
|
|
760
760
|
return parse_config(entry, hint, options)
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import fnmatch
|
2
|
-
import logging
|
3
2
|
import re
|
4
3
|
from pathlib import Path
|
5
4
|
from typing import Iterator
|
@@ -22,8 +21,6 @@ UnixConfigTreeRecord = TargetRecordDescriptor(
|
|
22
21
|
],
|
23
22
|
)
|
24
23
|
|
25
|
-
log = logging.getLogger(__name__)
|
26
|
-
|
27
24
|
|
28
25
|
class EtcTree(ConfigurationTreePlugin):
|
29
26
|
__namespace__ = "etc"
|
@@ -73,5 +70,5 @@ class EtcTree(ConfigurationTreePlugin):
|
|
73
70
|
if isinstance(config_object, ConfigurationEntry):
|
74
71
|
yield from self._sub(config_object, Path(entry) / Path(item), pattern)
|
75
72
|
except Exception:
|
76
|
-
log.warning("Could not open configuration item: %s", item)
|
73
|
+
self.target.log.warning("Could not open configuration item: %s", item)
|
77
74
|
pass
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dissect.target
|
3
|
-
Version: 3.19.
|
3
|
+
Version: 3.19.dev7
|
4
4
|
Summary: This module ties all other Dissect modules together, it provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets)
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
6
6
|
License: Affero General Public License v3
|
@@ -46,7 +46,7 @@ dissect/target/filesystems/zip.py,sha256=WT1bQhzX_1MXXVZTKrJniae4xqRqMZ8FsfbvhgG
|
|
46
46
|
dissect/target/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
dissect/target/helpers/cache.py,sha256=TXlJBdFRz6V9zKs903am4Yawr0maYw5kZY0RqklDQJM,8568
|
48
48
|
dissect/target/helpers/config.py,sha256=6917CZ6eDHaK_tOoiVEIndyhRXO6r6eCBIleq6f47PQ,2346
|
49
|
-
dissect/target/helpers/configutil.py,sha256=
|
49
|
+
dissect/target/helpers/configutil.py,sha256=wUVnfygXKargH1cAojGbTfgLffXYhbMZOrDP0BUwzdI,25638
|
50
50
|
dissect/target/helpers/cyber.py,sha256=WnJlk-HqAETmDAgLq92JPxyDLxvzSoFV_WrO-odVKBI,16805
|
51
51
|
dissect/target/helpers/descriptor_extensions.py,sha256=uT8GwznfDAiIgMM7JKKOY0PXKMv2c0GCqJTCkWFgops,2605
|
52
52
|
dissect/target/helpers/docs.py,sha256=J5U65Y3yOTqxDEZRCdrEmO63XQCeDzOJea1PwPM6Cyc,5146
|
@@ -210,7 +210,7 @@ dissect/target/plugins/os/unix/bsd/osx/user.py,sha256=qopB0s3n7e6Q7NjWzn8Z-dKtDt
|
|
210
210
|
dissect/target/plugins/os/unix/esxi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
211
211
|
dissect/target/plugins/os/unix/esxi/_os.py,sha256=JOJ6j57vFCojgBNkju-7MG2nQqwl4Qc-agXTwjhZPgY,17644
|
212
212
|
dissect/target/plugins/os/unix/etc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
213
|
-
dissect/target/plugins/os/unix/etc/etc.py,sha256=
|
213
|
+
dissect/target/plugins/os/unix/etc/etc.py,sha256=WNCtO7NWOKRDBiV-XjXqgPuGRDE_Zyw6XWz3kTm__QE,2493
|
214
214
|
dissect/target/plugins/os/unix/linux/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
215
215
|
dissect/target/plugins/os/unix/linux/_os.py,sha256=YJYwuq_iAinOrPqTE49Q4DLYMWBeRCly1uTbDvPhp6Q,2796
|
216
216
|
dissect/target/plugins/os/unix/linux/cmdline.py,sha256=AyMfndt3UsmJtoOyZYC8nWq2GZg9oPvn8SiI3M4NxnE,1622
|
@@ -345,10 +345,10 @@ dissect/target/volumes/luks.py,sha256=OmCMsw6rCUXG1_plnLVLTpsvE1n_6WtoRUGQbpmu1z
|
|
345
345
|
dissect/target/volumes/lvm.py,sha256=wwQVR9I3G9YzmY6UxFsH2Y4MXGBcKL9aayWGCDTiWMU,2269
|
346
346
|
dissect/target/volumes/md.py,sha256=j1K1iKmspl0C_OJFc7-Q1BMWN2OCC5EVANIgVlJ_fIE,1673
|
347
347
|
dissect/target/volumes/vmfs.py,sha256=-LoUbn9WNwTtLi_4K34uV_-wDw2W5hgaqxZNj4UmqAQ,1730
|
348
|
-
dissect.target-3.19.
|
349
|
-
dissect.target-3.19.
|
350
|
-
dissect.target-3.19.
|
351
|
-
dissect.target-3.19.
|
352
|
-
dissect.target-3.19.
|
353
|
-
dissect.target-3.19.
|
354
|
-
dissect.target-3.19.
|
348
|
+
dissect.target-3.19.dev7.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
|
349
|
+
dissect.target-3.19.dev7.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
350
|
+
dissect.target-3.19.dev7.dist-info/METADATA,sha256=Nnzl_TGD3KnPIsxQNALkjqUPqSwXdm787MGm4ukIauU,12718
|
351
|
+
dissect.target-3.19.dev7.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
352
|
+
dissect.target-3.19.dev7.dist-info/entry_points.txt,sha256=tvFPa-Ap-gakjaPwRc6Fl6mxHzxEZ_arAVU-IUYeo_s,447
|
353
|
+
dissect.target-3.19.dev7.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
354
|
+
dissect.target-3.19.dev7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|