Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/kern Pull up following revision(s) (requested by mart...



details:   https://anonhg.NetBSD.org/src/rev/37e27407613f
branches:  netbsd-9
changeset: 1002260:37e27407613f
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon May 03 09:12:50 2021 +0000

description:
Pull up following revision(s) (requested by martin in ticket #1265):
        sys/kern/kern_exec.c: revision 1.505 via patch
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 d4f0d3f75b63 -r 37e27407613f sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Mon May 03 09:04:21 2021 +0000
+++ b/sys/kern/kern_exec.c      Mon May 03 09:12:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.478.2.1 2019/10/15 18:32:13 martin Exp $       */
+/*     $NetBSD: kern_exec.c,v 1.478.2.2 2021/05/03 09:12:50 bouyer Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.478.2.1 2019/10/15 18:32:13 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.478.2.2 2021/05/03 09:12:50 bouyer Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -2124,7 +2124,7 @@
 
                /* Reset user ID's */
                if (spawn_data->sed_attrs->sa_flags & POSIX_SPAWN_RESETIDS) {
-                       error = do_setresuid(l, -1,
+                       error = do_setresgid(l, -1,
                             kauth_cred_getgid(l->l_cred), -1,
                             ID_E_EQ_R | ID_E_EQ_S);
                        if (error)



Home | Main Index | Thread Index | Old Index