From e42209dd77bd9c6577552226e049a77ab3c4fad6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 11 Dec 2002 10:58:02 +0000 Subject: [PATCH] Fix previous commit, fstat arg was wrong. --- libraries/liblutil/getpeereid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.5