summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-17 18:43:25 +0000
committerJim Meyering <jim@meyering.net>2003-09-17 18:43:25 +0000
commit7620cc92c20ec5c372891eac4a4051b45c3447e0 (patch)
tree15ff742c92909d7a54af0845897fe0c24eb7538a /lib
parent57f62d58c38f4e7312e45fb3eaa383ece73306a4 (diff)
downloadcoreutils-7620cc92c20ec5c372891eac4a4051b45c3447e0.tar.xz
Add comment from Bruno Haible.
Diffstat (limited to 'lib')
-rw-r--r--lib/mountlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 096593fb1..9051e817d 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -612,6 +612,7 @@ read_filesystem_list (int need_fs_type)
if (ferror (fp))
{
+ /* The last fread() call must have failed. */
int saved_errno = errno;
fclose (fp);
errno = saved_errno;