From: Howard Chu Date: Wed, 11 Dec 2002 10:58:02 +0000 (+0000) Subject: Fix previous commit, fstat arg was wrong. X-Git-Tag: NO_SLAP_OP_BLOCKS~691 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e42209dd77bd9c6577552226e049a77ab3c4fad6;p=openldap Fix previous commit, fstat arg was wrong. --- diff --git a/libraries/liblutil/getpeereid.c b/libraries/liblutil/getpeereid.c index 9954be6421..b944f94a9c 100644 --- a/libraries/liblutil/getpeereid.c +++ b/libraries/liblutil/getpeereid.c @@ -65,7 +65,7 @@ int getpeereid( int s, uid_t *euid, gid_t *egid ) /* We must receive a valid descriptor, it must be a pipe, * and it must only be accessible by its owner. */ - dummy = fstat( fd, &st ); + dummy = fstat( fd[0], &st ); close(fd[0]); if( dummy == 0 && S_ISFIFO(st.st_mode) && ((st.st_mode & (S_IRWXG|S_IRWXO)) == 0))