Skip to content
Snippets Groups Projects
Commit e42209dd authored by Howard Chu's avatar Howard Chu
Browse files

Fix previous commit, fstat arg was wrong.

parent 3b591dd4
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment