mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Avoid zero-length prefixes in PATH
A zero-length prefix in PATH is a legacy feature that indicates the current working directory. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03 Found in ru.nsu.bobrofon.easysshfs, see: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10953#note_921802636
This commit is contained in:
parent
694050e561
commit
46f4205fff
2 changed files with 9 additions and 1 deletions
|
@ -3006,7 +3006,7 @@ def set_FDroidPopen_env(build=None):
|
|||
if build is not None:
|
||||
path = build.ndk_path()
|
||||
paths = orig_path.split(os.pathsep)
|
||||
if path not in paths:
|
||||
if path and path not in paths:
|
||||
paths = [path] + paths
|
||||
env['PATH'] = os.pathsep.join(paths)
|
||||
for n in ['ANDROID_NDK', 'NDK', 'ANDROID_NDK_HOME']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue