Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2000 11:09:27 -0700
From:      Warner Losh <imp@village.org>
To:        hackers@freebsd.org
Subject:   Doc change sanity check
Message-ID:  <200011291809.LAA20795@harmony.village.org>

next in thread | raw e-mail | index | archive | help

In talking to the NetBSD folks, I have discoverd that the
documentation for setre[gu]id doesn't match the code in FreeBSD.
Before I commit the following changes to are docs, can someone please
make sure that the actual code in the kernel does what I say it does
in the change?  My reading of the code is that it does this, but I
think that it would be good to have another set of eyes reading it.

I got these changes from the NetBSD man pages.

Comments?

Warner

Index: setregid.2
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/sys/setregid.2,v
retrieving revision 1.8
diff -u -r1.8 setregid.2
--- setregid.2  2000/05/04 13:09:20     1.8
+++ setregid.2  2000/11/29 18:06:36
@@ -47,6 +47,9 @@
 .Sh DESCRIPTION
 The real and effective group ID's of the current process
 are set to the arguments.
+If the real group ID is changed, the saved group ID is changed to the
+new value of the effective group ID.
+.Pp
 Unprivileged users may change the real group
 ID to the effective group ID and vice-versa; only the super-user may
 make other changes.
Index: setreuid.2
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/sys/setreuid.2,v
retrieving revision 1.8
diff -u -r1.8 setreuid.2
--- setreuid.2  2000/05/04 13:09:20     1.8
+++ setreuid.2  2000/11/29 18:06:36
@@ -47,6 +47,9 @@
 .Sh DESCRIPTION
 The real and effective user IDs of the
 current process are set according to the arguments.
+If the real user ID is changed, the saved user ID is changed to the
+new value of the effective user ID.
+.Pp
 If
 .Fa ruid
 or 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011291809.LAA20795>