From 253e8404513413890d816c0de787ab81cfffe3a3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 7 Mar 2016 21:36:51 +0100 Subject: 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. --- utils/fakeauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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 -- cgit v1.2.3