]> arthur.barton.de Git - bup.git/commitdiff
help: pass full bup path as argv[0] when running 'bup help'
authorRob Browning <rlb@defaultvalue.org>
Fri, 26 Mar 2021 05:16:08 +0000 (00:16 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 28 Mar 2021 21:25:18 +0000 (16:25 -0500)
Noticed this while tracking down a previous issue with our invocation
of strtok.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/help.py

index 4e30179198b0ce8d1544f5dedb63ad37b23146ad..10b3d361da97dc245800bcc32a362ed5c0bff936 100755 (executable)
@@ -16,7 +16,7 @@ def main(argv):
 
     if len(extra) == 0:
         # the wrapper program provides the default usage string
-        os.execvp(path.exe(), [b'bup'])
+        os.execvp(path.exe(), [path.exe()])
     elif len(extra) == 1:
         docname = (extra[0]=='bup' and b'bup' or (b'bup-%s' % argv_bytes(extra[0])))
         manpath = os.path.join(path.exedir(),