summaryrefslogtreecommitdiffstats
path: root/mount/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount/swapon.c')
-rw-r--r--mount/swapon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index b87a021ae..9f25fcbe7 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -158,9 +158,11 @@ display_summary(void)
strerror (errsv));
return -1 ;
}
+
while ( fgets(line, sizeof(line), swaps))
printf ("%s", line);
+ fclose(swaps);
return 0 ;
}