[PC-BSD Commits] r18011 - pcbsd/current/src-sh/pc-adctl/krb

svn at pcbsd.org svn at pcbsd.org
Mon Jul 30 21:29:04 PDT 2012


Author: johnh
Date: 2012-07-31 04:29:04 +0000 (Tue, 31 Jul 2012)
New Revision: 18011

Modified:
   pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
Log:
Fix last commit, now force create works.



Modified: pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
===================================================================
--- pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-31 04:24:58 UTC (rev 18010)
+++ pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-31 04:29:04 UTC (rev 18011)
@@ -114,12 +114,12 @@
 
 		case '-':
 			km->op = KRB_OP_REMOVE;
+			km->create = 0;
 			m += 1;
 			break;
 
 		case '^':
 			km->op = KRB_OP_MODIFY;
-			km->create = 0;
 			m += 1;
 			break;
 
@@ -909,7 +909,6 @@
 	struct krb_modification *km, *kmtmp;
 
 	TAILQ_FOREACH_SAFE(km, &modifications, entries, kmtmp) {
-
 		switch (km->op) {
 			case KRB_OP_ADD: {
 				char *value = NULL;
@@ -965,15 +964,15 @@
 				infile = xstrdup(optarg);
 				break;
 
+			case 'c':
+				create++;
+				break;
+
 			case 'm':
 				add_modification(optarg, create);
 				create = 0;
 				break;
 
-			case 'c':
-				create++;
-				break;
-
 			case 'o':
 				xfree(&outfile);
 				outfile = xstrdup(optarg);



More information about the Commits mailing list