From: Matthew Dillon Date: Thu, 3 Dec 2009 23:04:25 +0000 (-0800) Subject: hammer utility - minor adjustment to snaprm X-Git-Url: https://gitweb.dragonflybsd.org/~polachok/dragonfly.git/commitdiff_plain/662838f83cc89aa766f15bc09ab868d7632378d0 hammer utility - minor adjustment to snaprm * Allow the removal of snapshots with a transaction id of 0. Such snapshots are a degenerate case which can occur only during testing. --- diff --git a/sbin/hammer/cmd_snapshot.c b/sbin/hammer/cmd_snapshot.c index 313e9156a4..42779eb4d7 100644 --- a/sbin/hammer/cmd_snapshot.c +++ b/sbin/hammer/cmd_snapshot.c @@ -214,7 +214,7 @@ hammer_cmd_snaprm(char **av, int ac) for (i = 0; i < ac; ++i) { if (lstat(av[i], &st) < 0) { tid = strtoull(av[i], &ptr, 16); - if (tid == 0 || *ptr) { + if (*ptr) { err(2, "hammer snaprm: not a file or tid: %s", av[i]); /* not reached */