summaryrefslogtreecommitdiffstats
path: root/mount/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:49 +0100
committerKarel Zak2006-12-07 00:25:49 +0100
commite8f2641919de90b488ce3788a7795b88311750b5 (patch)
tree68f3732da38ff1b21ec49780d7c830250329fec9 /mount/swapon.c
parentImported from util-linux-2.11f tarball. (diff)
downloadkernel-qcow2-util-linux-e8f2641919de90b488ce3788a7795b88311750b5.tar.gz
kernel-qcow2-util-linux-e8f2641919de90b488ce3788a7795b88311750b5.tar.xz
kernel-qcow2-util-linux-e8f2641919de90b488ce3788a7795b88311750b5.zip
Imported from util-linux-2.11m tarball.
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 ;
}