summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/fgetgrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/fgetgrent.c')
-rw-r--r--libc/pwd_grp/fgetgrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/pwd_grp/fgetgrent.c b/libc/pwd_grp/fgetgrent.c
index 09701a38b..50aa01722 100644
--- a/libc/pwd_grp/fgetgrent.c
+++ b/libc/pwd_grp/fgetgrent.c
@@ -25,7 +25,7 @@
struct group *fgetgrent(FILE * file)
{
if (file == NULL) {
- errno = EINTR;
+ __set_errno(EINTR);
return NULL;
}