git: sbin/newfs_hammer: Check/initialize uuid after getopt

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Oct 6 14:28:57 PDT 2016


commit 81a213a5af8fff462a897722e2cd6bae0b33057d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Sep 27 08:54:11 2016 +0900

    sbin/newfs_hammer: Check/initialize uuid after getopt
    
    Allow the program to go through options even with invalid uuid,
    so it at least allows some basic options like -h.
    This is same as what sbin/hammer does.

Summary of changes:
 sbin/hammer/hammer.c             |  3 +++
 sbin/newfs_hammer/newfs_hammer.c | 30 +++++++++++++-----------------
 2 files changed, 16 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/81a213a5af8fff462a897722e2cd6bae0b33057d


-- 
DragonFly BSD source repository



More information about the Commits mailing list