aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/mntent_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 39fa08f..b963c9a 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -253,7 +253,7 @@ __addmntent (FILE *stream, const struct mntent *mnt)
write_string (stream, mnt->mnt_opts);
fprintf (stream, "%d %d\n", mnt->mnt_freq, mnt->mnt_passno);
- ret = ferror (stream) != 0 || fflush (stream) != 0;
+ ret = __ferror_unlocked (stream) != 0 || fflush (stream) != 0;
funlockfile (stream);