DragonFly BSD
DragonFly commits List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_2_10 swapon(8): Fix "swapctl -l".


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 Apr 2011 15:28:19 -0700 (PDT)

commit 8b902ba175b4f3a8ffd53ec3d11786753cf7695b
Author: Sascha Wildner <saw@online.de>
Date:   Sun May 1 00:27:05 2011 +0200

    swapon(8): Fix "swapctl -l".
    
    Without -s, swapctl -l would report 0 for swap size and used swap because
    some variables were initialized only for the -s case. Just remove the
    "if (sflag)" around the calculation.
    
    Reported-by: Joachim de Groot <jdegroot@web.de>
    Taken-from:  FreeBSD

Summary of changes:
 sbin/swapon/swapon.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b902ba175b4f3a8ffd53ec3d11786753cf7695b


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]