mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 23:02:55 -05:00
Fix previous commit, fstat arg was wrong.
This commit is contained in:
parent
3b591dd4f6
commit
e42209dd77
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue