diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-05 22:56:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-05 22:56:44 +0000 |
commit | 6f1071180932a7c459a3d06a62fe87bebaab3e09 (patch) | |
tree | 9e1eaa092d845fe16ce8ba607021c8a27c06fcfa /lib/libc | |
parent | 3452636809e58e3ef61712c931058058b76124f0 (diff) |
clarify more why this is needed
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/issetugid.2 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/sys/issetugid.2 b/lib/libc/sys/issetugid.2 index 6e804546ed1..73fa737529b 100644 --- a/lib/libc/sys/issetugid.2 +++ b/lib/libc/sys/issetugid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: issetugid.2,v 1.5 1997/02/05 20:37:23 deraadt Exp $ +.\" $OpenBSD: issetugid.2,v 1.6 1997/02/05 22:56:43 deraadt Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -54,7 +54,8 @@ This system call exists so that library routines (inside libc, libtermlib, or other libraries) can gaurantee safe behavior when used inside setuid or setgid programs. Some library routines may not be passed sufficient information to know -if the current program was started setuid or setgid. +if the current program was started setuid or setgid because higher level +calling code may have made changes to the uid or the euid. In particular, it is wise to use this call to determine if a pathname returned from a .Fn getenv @@ -78,3 +79,8 @@ indicate an error. .Xr seteuid 2, .Xr setgid 2 , .Xr setegid 2 +.Sh HISTORY +A +.Fn lstat +function call appeared in +OpenBSD 2.0 |