Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect getgrnam error handling
getgrent(3) says: Note that programs must explicitly set errno to zero before calling any of these functions if they need to distinguish between a non-existent entry and an error. We didn't so we could log the wrong error based on previous failed call and confuse the user. Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information