git: sbin/hammer: Change assertion on invalid cleanup path to printf

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Dec 6 09:08:32 PST 2015


commit aae415390c71c84b78832fba257f97ab1a52a316
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Dec 6 02:43:45 2015 +0900

    sbin/hammer: Change assertion on invalid cleanup path to printf
    
    This shouldn't be assertion.
    Users could just type . for no reason and result in core dump.
    It should end like other errors as shown below.
    
      # hammer cleanup . . . . .
      cleanup .                    - path must start with '/'
      cleanup .                    - PFS #0 already handled
      cleanup .                    - PFS #0 already handled
      cleanup .                    - PFS #0 already handled
      cleanup .                    - PFS #0 already handled

Summary of changes:
 sbin/hammer/cmd_cleanup.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aae415390c71c84b78832fba257f97ab1a52a316


-- 
DragonFly BSD source repository


More information about the Commits mailing list