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

看板DFBSD_commit作者時間14年前 (2011/05/17 07:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit ebd20800f90101c7f35180985899fb1c94af5021 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/ebd20800f90101c7f35180985899fb1c94af5021 -- DragonFly BSD source repository
文章代碼(AID): #1DqRGudJ (DFBSD_commit)