Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS ...



details:   https://anonhg.NetBSD.org/src/rev/b7fbeee5d99d
branches:  trunk
changeset: 983074:b7fbeee5d99d
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 02 10:23:55 2021 +0000

description:
Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3)

diffstat:

 sys/kern/kern_exec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8b9ae69e0785 -r b7fbeee5d99d sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sun May 02 08:18:38 2021 +0000
+++ b/sys/kern/kern_exec.c      Sun May 02 10:23:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.504 2020/12/05 18:17:01 thorpej Exp $  */
+/*     $NetBSD: kern_exec.c,v 1.505 2021/05/02 10:23:55 martin Exp $   */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.504 2020/12/05 18:17:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.505 2021/05/02 10:23:55 martin Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -2172,7 +2172,7 @@
 
        /* Reset user ID's */
        if (attrs->sa_flags & POSIX_SPAWN_RESETIDS) {
-               error = do_setresuid(l, -1, kauth_cred_getgid(l->l_cred), -1,
+               error = do_setresgid(l, -1, kauth_cred_getgid(l->l_cred), -1,
                     ID_E_EQ_R | ID_E_EQ_S);
                if (error)
                        return error;



Home | Main Index | Thread Index | Old Index