Source-Changes-HG archive

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

[src/trunk]: src/sys/kern correct comment: turn off set-id if MNT_NOSUID is s...



details:   https://anonhg.NetBSD.org/src/rev/f9ad6e91f06e
branches:  trunk
changeset: 472308:f9ad6e91f06e
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Apr 27 05:28:44 1999 +0000

description:
correct comment: turn off set-id if MNT_NOSUID is set, not MNT_NOEXEC.

diffstat:

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

diffs (18 lines):

diff -r 08e133fa9d6b -r f9ad6e91f06e sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Tue Apr 27 04:56:18 1999 +0000
+++ b/sys/kern/kern_exec.c      Tue Apr 27 05:28:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.100 1999/03/24 05:51:22 mrg Exp $      */
+/*     $NetBSD: kern_exec.c,v 1.101 1999/04/27 05:28:44 cgd Exp $      */
 
 /*-
  * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -439,7 +439,7 @@
 
        /*
         * deal with set[ug]id.
-        * MNT_NOEXEC and P_TRACED have already been used to disable s[ug]id.
+        * MNT_NOSUID and P_TRACED have already been used to disable s[ug]id.
         */
        if (((attr.va_mode & S_ISUID) != 0 && p->p_ucred->cr_uid != attr.va_uid)
         || ((attr.va_mode & S_ISGID) != 0 && p->p_ucred->cr_gid != attr.va_gid)){



Home | Main Index | Thread Index | Old Index