mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	On platforms with no way to get peer UID, use getuid(), also fix some failure
checks.
This commit is contained in:
		@@ -53,7 +53,6 @@ getpeereid(int s, uid_t *uid, gid_t *gid)
 | 
			
		||||
        return (0);
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
	errno = EOPNOTSUPP;
 | 
			
		||||
	return (-1);
 | 
			
		||||
	return (getuid());
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user