starbash 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of starbash might be problematic. Click here for more details.
- starbash/repo/manager.py +10 -3
- {starbash-0.1.5.dist-info → starbash-0.1.6.dist-info}/METADATA +1 -1
- {starbash-0.1.5.dist-info → starbash-0.1.6.dist-info}/RECORD +6 -6
- {starbash-0.1.5.dist-info → starbash-0.1.6.dist-info}/WHEEL +0 -0
- {starbash-0.1.5.dist-info → starbash-0.1.6.dist-info}/entry_points.txt +0 -0
- {starbash-0.1.5.dist-info → starbash-0.1.6.dist-info}/licenses/LICENSE +0 -0
starbash/repo/manager.py
CHANGED
|
@@ -171,9 +171,16 @@ class Repo:
|
|
|
171
171
|
raise ValueError("Cannot read files from non-local repositories")
|
|
172
172
|
target_path = (base_path / filepath).resolve()
|
|
173
173
|
|
|
174
|
-
# Security check to prevent reading files outside the repo directory
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
# Security check to prevent reading files outside the repo directory.
|
|
175
|
+
# FIXME SECURITY - temporarily disabled because I want to let file urls say things like ~/foo.
|
|
176
|
+
# it would false trigger if user homedir path has a symlink in it (such as /home -> /var/home)
|
|
177
|
+
# base_path = PosixPath('/home/kevinh/.config/starbash') │ │
|
|
178
|
+
# filepath = 'starbash.toml' │ │
|
|
179
|
+
# self = <repr-error 'maximum recursion depth exceeded'> │ │
|
|
180
|
+
# target_path = PosixPath('/var/home/kevinh/.config/starbash/starbash.toml')
|
|
181
|
+
#
|
|
182
|
+
# if base_path not in target_path.parents and target_path != base_path:
|
|
183
|
+
# raise PermissionError("Attempted to read file outside of repository")
|
|
177
184
|
|
|
178
185
|
return target_path.read_text()
|
|
179
186
|
|
|
@@ -20,14 +20,14 @@ starbash/recipes/osc_dual_duo/starbash.toml,sha256=xh3zEqdotRZr7eUcqel-xnQcWH8z-
|
|
|
20
20
|
starbash/recipes/osc_single_duo/starbash.toml,sha256=kB-FMek0Z-8vieUfxKqmZMFNnZsSKdufSkLSgH03CkY,2117
|
|
21
21
|
starbash/recipes/starbash.toml,sha256=iZs0nLGY1kox0wa5ZzX9t2xTffy4Jbu_Q221Egnsml8,1019
|
|
22
22
|
starbash/repo/__init__.py,sha256=TqspuLjPSNnO38tvCGa0fJvvasgecHl6fE7m0-Lj8ho,148
|
|
23
|
-
starbash/repo/manager.py,sha256=
|
|
23
|
+
starbash/repo/manager.py,sha256=Fc_akPK7D8sw3961DM5BCQ7O27tnEdAutg8TSNiopgI,13903
|
|
24
24
|
starbash/selection.py,sha256=DPzUlls3n-sBqkwTUns2ZNaPi61PGnh7Z_ZQOC1jXYc,8347
|
|
25
25
|
starbash/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
starbash/templates/userconfig.toml,sha256=LCV69jAxLrIPXrkt6U-gU4KLKeb9MHCD1ownqG211Ns,1442
|
|
27
27
|
starbash/tool.py,sha256=S1kOTbeHTrA0meqwftgL0SA4VhJdZWWx2h1Wtwu1Izg,8749
|
|
28
28
|
starbash/url.py,sha256=lorxQJ27jSfzsKCb0QvpcvLiPZG55Dkd_c1JPFbni4I,402
|
|
29
|
-
starbash-0.1.
|
|
30
|
-
starbash-0.1.
|
|
31
|
-
starbash-0.1.
|
|
32
|
-
starbash-0.1.
|
|
33
|
-
starbash-0.1.
|
|
29
|
+
starbash-0.1.6.dist-info/METADATA,sha256=pR7UYA49K2goimDRGMwsg1Y_p4MdO0lkDP6OrMKjYZ0,6156
|
|
30
|
+
starbash-0.1.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
31
|
+
starbash-0.1.6.dist-info/entry_points.txt,sha256=REQyWs8e5TJsNK7JVVWowKVoytMmKlUwuFHLTmSX4hc,67
|
|
32
|
+
starbash-0.1.6.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
33
|
+
starbash-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|