Skip to content

Commit

Permalink
Merge pull request #383 from VIDA-NYU/directory-ldlinux-path
Browse files Browse the repository at this point in the history
Fix invocation through PATH in directory unpacker
  • Loading branch information
remram44 committed Apr 16, 2022
2 parents ddb0896 + 6254290 commit 1a05646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reprounzip/reprounzip/unpackers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ def directory_run(args):
if cmdline is None:
argv = run['argv']

# If the command is not a path, use the path instead
if '/' not in argv[0]:
argv = [run['binary']] + argv[1:]

# Rewrites command-line arguments that are absolute filenames
rewritten = False
for i in irange(len(argv)):
Expand Down

0 comments on commit 1a05646

Please sign in to comment.