From e8f2641919de90b488ce3788a7795b88311750b5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:49 +0100 Subject: Imported from util-linux-2.11m tarball. --- mount/swapon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mount/swapon.c') 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 ; } -- cgit v1.2.3-55-g7522