From: deraadt Date: Wed, 5 Feb 1997 22:56:43 +0000 (+0000) Subject: clarify more why this is needed X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=095a2dfaecb6810f0d1f658f8fce5f11d2cad157;p=openbsd clarify more why this is needed --- 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