summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-03-07 21:36:51 +0100
committerJustus Winter <justus@gnupg.org>2016-03-07 21:36:51 +0100
commit253e8404513413890d816c0de787ab81cfffe3a3 (patch)
tree7a172c727841a3a13e1adc3b441ed0193210ce7b
parent2f0b4c592b4f9fd3c6d5744a3bc077237ce9278d (diff)
utils/fakeauth: fix invocation of programs from PATH
* utils/fakeauth.c (main): Replace the right element of the argument vector. This fixes running scripts from PATH using fakeroot.
-rw-r--r--utils/fakeauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fakeauth.c b/utils/fakeauth.c
index 004cc469..40c898b2 100644
--- a/utils/fakeauth.c
+++ b/utils/fakeauth.c
@@ -408,7 +408,7 @@ believe it has restricted them to different identities or no identity at all.\
if (execfile == MACH_PORT_NULL)
error (3, errno, "%s", argv[argi]);
if (prefixed_name)
- argv[0] = prefixed_name;
+ argv[argi] = prefixed_name;
err = task_create (mach_task_self (),
#ifdef KERN_INVALID_LEDGER