From b33f91e91da81059b388c8f8ee0d0024212eb180 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 10 Oct 1996 01:07:18 +0000 Subject: update from main archive 961009 Wed Oct 9 00:24:52 1996 Jim Meyering * time/strftime.c: Allow old K&R compilers compile this file. Wed Oct 9 12:03:56 1996 Ulrich Drepper * posix/execlp.c: Add first argument parameter to be compliant with POSIX. Rearrange body to start vararg counter after this new argument. Wed Oct 9 04:34:50 1996 Ulrich Drepper * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite. We cannot use simply a wrapper around the file since the kernel header is not clean enough. We provide the definitions in this file instead. Wed Oct 9 01:43:18 1996 Ulrich Drepper * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid get?id calls by using __libc_enable_secure. --- sysdeps/unix/sysv/linux/gethostid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/gethostid.c') diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c index a1d141b142..ca2669d3e6 100644 --- a/sysdeps/unix/sysv/linux/gethostid.c +++ b/sysdeps/unix/sysv/linux/gethostid.c @@ -30,7 +30,7 @@ sethostid (id) ssize_t written; /* Test for appropriate rights to set host ID. */ - if (geteuid () || getuid ()) + if (__libc_enable_secure) { __set_errno (EPERM); return -1; -- cgit 1.4.1