]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit, fstat arg was wrong.
authorHoward Chu <hyc@openldap.org>
Wed, 11 Dec 2002 10:58:02 +0000 (10:58 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 11 Dec 2002 10:58:02 +0000 (10:58 +0000)
libraries/liblutil/getpeereid.c

index 9954be64216a475086802cb7f9ddcd8d007422c4..b944f94a9c546a955ca9cf333ca167902be16344 100644 (file)
@@ -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))