svn commit: r337918 - head/sbin/bectl

Kyle Evans kevans at FreeBSD.org
Thu Aug 16 18:27:44 UTC 2018


Author: kevans
Date: Thu Aug 16 18:27:43 2018
New Revision: 337918
URL: https://svnweb.freebsd.org/changeset/base/337918

Log:
  bectl(8): Kit-kat bar

Modified:
  head/sbin/bectl/bectl.c

Modified: head/sbin/bectl/bectl.c
==============================================================================
--- head/sbin/bectl/bectl.c	Thu Aug 16 18:26:43 2018	(r337917)
+++ head/sbin/bectl/bectl.c	Thu Aug 16 18:27:43 2018	(r337918)
@@ -188,13 +188,14 @@ bectl_cmd_create(int argc, char *argv[])
 
 	snapname = NULL;
 	recursive = false;
-	while ((opt = getopt(argc, argv, "re:")) != -1) {
+	while ((opt = getopt(argc, argv, "e:r")) != -1) {
 		switch (opt) {
 		case 'e':
 			snapname = optarg;
 			break;
 		case 'r':
 			recursive = true;
+			break;
 		default:
 			fprintf(stderr, "bectl create: unknown option '-%c'\n",
 			    optopt);


More information about the svn-src-head mailing list