commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 02/03: utils/fakeauth: fix invocation of programs from PATH


From: Samuel Thibault
Subject: [hurd] 02/03: utils/fakeauth: fix invocation of programs from PATH
Date: Mon, 14 Mar 2016 00:40:48 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 253e8404513413890d816c0de787ab81cfffe3a3
Author: Justus Winter <address@hidden>
Date:   Mon Mar 7 21:36:51 2016 +0100

    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(-)

diff --git a/utils/fakeauth.c b/utils/fakeauth.c
index 004cc46..40c898b 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

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]