[1997] in Moira Commits
/svn/moira r4136 - trunk/moira/clients/stella
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Fri Aug 23 16:56:12 2013
Date: Fri, 23 Aug 2013 16:56:03 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201308232056.r7NKu397013457@drugstore.mit.edu>
To: moira-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: zacheiss
Date: 2013-08-23 16:56:02 -0400 (Fri, 23 Aug 2013)
New Revision: 4136
Modified:
trunk/moira/clients/stella/stella.c
Log:
support (undocumented) flag for general purpose setting of opt field.
Modified: trunk/moira/clients/stella/stella.c
===================================================================
--- trunk/moira/clients/stella/stella.c 2013-08-23 17:19:51 UTC (rev 4135)
+++ trunk/moira/clients/stella/stella.c 2013-08-23 20:56:02 UTC (rev 4136)
@@ -329,6 +329,14 @@
set_host_opt_flag++;
opt = "1";
}
+ else if (argis("opt", "option")) {
+ if (arg - argv < argc - 1) {
+ arg++;
+ set_host_opt_flag++;
+ opt = *arg;
+ } else
+ usage(argv);
+ }
else if (argis("ttl", "setttl")) {
if (arg - argv < argc - 1) {
arg++;
@@ -857,7 +865,7 @@
char *argv[3];
/* Must specify non-null admin. comment if opting out */
- if (atoi(opt) > 0 && !op_cmt)
+ if (atoi(opt) == 1 && !op_cmt)
{
com_err(whoami, 0, "Must specify operational comment when opting out of default network security policy");
exit(1);