about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/gethostid.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-10-10 01:07:18 +0000
committerUlrich Drepper <drepper@redhat.com>1996-10-10 01:07:18 +0000
commitb33f91e91da81059b388c8f8ee0d0024212eb180 (patch)
treea9b0a80b8567c0d4e24a74f0c45e52a4a3a8962a /sysdeps/unix/sysv/linux/gethostid.c
parent11336c165c25e5a467335ca742674b1d5ad6d982 (diff)
downloadglibc-b33f91e91da81059b388c8f8ee0d0024212eb180.tar.gz
glibc-b33f91e91da81059b388c8f8ee0d0024212eb180.tar.xz
glibc-b33f91e91da81059b388c8f8ee0d0024212eb180.zip
update from main archive 961009 cvs/libc-961011 cvs/libc-961010
Wed Oct  9 00:24:52 1996  Jim Meyering  <meyering@asic.sc.ti.com>

	* time/strftime.c: Allow old K&R compilers compile this file.

Wed Oct  9 12:03:56 1996  Ulrich Drepper  <drepper@cygnus.com>

	* 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  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite.  We cannot use
	simply a wrapper around the <linux.elfcore.h> 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  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
	get?id calls by using __libc_enable_secure.
Diffstat (limited to 'sysdeps/unix/sysv/linux/gethostid.c')
-rw-r--r--sysdeps/unix/sysv/linux/gethostid.c2
1 files changed, 1 insertions, 1 deletions
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;