diff options
author | jb <jb@FreeBSD.org> | 1998-01-15 09:58:08 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-01-15 09:58:08 +0000 |
commit | e400ec32db9124edbe3587b88c9c7665cf26ac53 (patch) | |
tree | 2c7dc933c13a159c7ceb6e586bc362f9806dfd8e /lib/libc/locale/setlocale.c | |
parent | ddfe5471a6adeb66dc5f383151ca19757d08bde5 (diff) | |
download | FreeBSD-src-e400ec32db9124edbe3587b88c9c7665cf26ac53.zip FreeBSD-src-e400ec32db9124edbe3587b88c9c7665cf26ac53.tar.gz |
Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() which
do not exist in NetBSD 1.3.
Diffstat (limited to 'lib/libc/locale/setlocale.c')
-rw-r--r-- | lib/libc/locale/setlocale.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 4b7a1b1..4b86a81 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -33,12 +33,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: setlocale.c,v 1.20 1997/02/22 14:59:56 peter Exp $ + * $Id: setlocale.c,v 1.21 1997/04/07 08:54:35 ache Exp $ */ #ifdef LIBC_RCS static const char rcsid[] = - "$Id: setlocale.c,v 1.20 1997/02/22 14:59:56 peter Exp $"; + "$Id: setlocale.c,v 1.21 1997/04/07 08:54:35 ache Exp $"; #endif #if defined(LIBC_SCCS) && !defined(lint) @@ -225,7 +225,11 @@ loadlocale(category) if (_PathLocale == NULL) { char *p = getenv("PATH_LOCALE"); - if (p != NULL && !issetugid()) { + if (p != NULL +#ifndef __NETBSD_SYSCALLS + && !issetugid() +#endif + ) { if (strlen(p) + 1/*"/"*/ + ENCODING_LEN + 1/*"/"*/ + CATEGORY_LEN >= PATH_MAX) return (NULL); |