#include <config.h>
#include <sys/types.h>
-#include <sys/param.h>
#include <stdio.h>
#ifdef STDC_HEADERS
# include <stdlib.h>
parse_error = true;
debug_return;
}
-#line 128 "gram.y"
+#line 127 "gram.y"
#ifndef YYSTYPE_DEFINED
#define YYSTYPE_DEFINED
typedef union {
int tok;
} YYSTYPE;
#endif /* YYSTYPE_DEFINED */
-#line 181 "gram.c"
+#line 180 "gram.c"
#define COMMAND 257
#define ALIAS 258
#define DEFVAR 259
short *yysslim;
YYSTYPE *yyvs;
int yystacksize;
-#line 680 "gram.y"
+#line 679 "gram.y"
static struct defaults *
new_default(char *var, char *val, int op)
{
debug_return;
}
-#line 859 "gram.c"
+#line 858 "gram.c"
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
#if defined(__cplusplus) || defined(__STDC__)
static int yygrowstack(void)
switch (yyn)
{
case 1:
-#line 210 "gram.y"
+#line 209 "gram.y"
{ ; }
break;
case 5:
-#line 218 "gram.y"
+#line 217 "gram.y"
{
;
}
break;
case 6:
-#line 221 "gram.y"
+#line 220 "gram.y"
{
yyerrok;
}
break;
case 7:
-#line 224 "gram.y"
+#line 223 "gram.y"
{
add_userspec(yyvsp[-1].member, yyvsp[0].privilege);
}
break;
case 8:
-#line 227 "gram.y"
+#line 226 "gram.y"
{
;
}
break;
case 9:
-#line 230 "gram.y"
+#line 229 "gram.y"
{
;
}
break;
case 10:
-#line 233 "gram.y"
+#line 232 "gram.y"
{
;
}
break;
case 11:
-#line 236 "gram.y"
+#line 235 "gram.y"
{
;
}
break;
case 12:
-#line 239 "gram.y"
+#line 238 "gram.y"
{
add_defaults(DEFAULTS, NULL, yyvsp[0].defaults);
}
break;
case 13:
-#line 242 "gram.y"
+#line 241 "gram.y"
{
add_defaults(DEFAULTS_USER, yyvsp[-1].member, yyvsp[0].defaults);
}
break;
case 14:
-#line 245 "gram.y"
+#line 244 "gram.y"
{
add_defaults(DEFAULTS_RUNAS, yyvsp[-1].member, yyvsp[0].defaults);
}
break;
case 15:
-#line 248 "gram.y"
+#line 247 "gram.y"
{
add_defaults(DEFAULTS_HOST, yyvsp[-1].member, yyvsp[0].defaults);
}
break;
case 16:
-#line 251 "gram.y"
+#line 250 "gram.y"
{
add_defaults(DEFAULTS_CMND, yyvsp[-1].member, yyvsp[0].defaults);
}
break;
case 18:
-#line 257 "gram.y"
+#line 256 "gram.y"
{
list_append(yyvsp[-2].defaults, yyvsp[0].defaults);
yyval.defaults = yyvsp[-2].defaults;
}
break;
case 19:
-#line 263 "gram.y"
+#line 262 "gram.y"
{
yyval.defaults = new_default(yyvsp[0].string, NULL, true);
}
break;
case 20:
-#line 266 "gram.y"
+#line 265 "gram.y"
{
yyval.defaults = new_default(yyvsp[0].string, NULL, false);
}
break;
case 21:
-#line 269 "gram.y"
+#line 268 "gram.y"
{
yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, true);
}
break;
case 22:
-#line 272 "gram.y"
+#line 271 "gram.y"
{
yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, '+');
}
break;
case 23:
-#line 275 "gram.y"
+#line 274 "gram.y"
{
yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, '-');
}
break;
case 25:
-#line 281 "gram.y"
+#line 280 "gram.y"
{
list_append(yyvsp[-2].privilege, yyvsp[0].privilege);
yyval.privilege = yyvsp[-2].privilege;
}
break;
case 26:
-#line 287 "gram.y"
+#line 286 "gram.y"
{
struct privilege *p = ecalloc(1, sizeof(*p));
list2tq(&p->hostlist, yyvsp[-2].member);
}
break;
case 27:
-#line 297 "gram.y"
+#line 296 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = false;
}
break;
case 28:
-#line 301 "gram.y"
+#line 300 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = true;
}
break;
case 29:
-#line 307 "gram.y"
+#line 306 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, ALIAS);
}
break;
case 30:
-#line 310 "gram.y"
+#line 309 "gram.y"
{
yyval.member = new_member(NULL, ALL);
}
break;
case 31:
-#line 313 "gram.y"
+#line 312 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, NETGROUP);
}
break;
case 32:
-#line 316 "gram.y"
+#line 315 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, NTWKADDR);
}
break;
case 33:
-#line 319 "gram.y"
+#line 318 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, WORD);
}
break;
case 35:
-#line 325 "gram.y"
+#line 324 "gram.y"
{
list_append(yyvsp[-2].cmndspec, yyvsp[0].cmndspec);
#ifdef HAVE_SELINUX
}
break;
case 36:
-#line 364 "gram.y"
+#line 363 "gram.y"
{
struct cmndspec *cs = ecalloc(1, sizeof(*cs));
if (yyvsp[-4].runas != NULL) {
}
break;
case 37:
-#line 394 "gram.y"
+#line 393 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = false;
}
break;
case 38:
-#line 398 "gram.y"
+#line 397 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = true;
}
break;
case 39:
-#line 404 "gram.y"
+#line 403 "gram.y"
{
yyval.string = yyvsp[0].string;
}
break;
case 40:
-#line 409 "gram.y"
+#line 408 "gram.y"
{
yyval.string = yyvsp[0].string;
}
break;
case 41:
-#line 414 "gram.y"
+#line 413 "gram.y"
{
yyval.seinfo.role = NULL;
yyval.seinfo.type = NULL;
}
break;
case 42:
-#line 418 "gram.y"
+#line 417 "gram.y"
{
yyval.seinfo.role = yyvsp[0].string;
yyval.seinfo.type = NULL;
}
break;
case 43:
-#line 422 "gram.y"
+#line 421 "gram.y"
{
yyval.seinfo.type = yyvsp[0].string;
yyval.seinfo.role = NULL;
}
break;
case 44:
-#line 426 "gram.y"
+#line 425 "gram.y"
{
yyval.seinfo.role = yyvsp[-1].string;
yyval.seinfo.type = yyvsp[0].string;
}
break;
case 45:
-#line 430 "gram.y"
+#line 429 "gram.y"
{
yyval.seinfo.type = yyvsp[-1].string;
yyval.seinfo.role = yyvsp[0].string;
}
break;
case 46:
-#line 436 "gram.y"
+#line 435 "gram.y"
{
yyval.string = yyvsp[0].string;
}
break;
case 47:
-#line 440 "gram.y"
+#line 439 "gram.y"
{
yyval.string = yyvsp[0].string;
}
break;
case 48:
-#line 445 "gram.y"
+#line 444 "gram.y"
{
yyval.privinfo.privs = NULL;
yyval.privinfo.limitprivs = NULL;
}
break;
case 49:
-#line 449 "gram.y"
+#line 448 "gram.y"
{
yyval.privinfo.privs = yyvsp[0].string;
yyval.privinfo.limitprivs = NULL;
}
break;
case 50:
-#line 453 "gram.y"
+#line 452 "gram.y"
{
yyval.privinfo.privs = NULL;
yyval.privinfo.limitprivs = yyvsp[0].string;
}
break;
case 51:
-#line 457 "gram.y"
+#line 456 "gram.y"
{
yyval.privinfo.privs = yyvsp[-1].string;
yyval.privinfo.limitprivs = yyvsp[0].string;
}
break;
case 52:
-#line 461 "gram.y"
+#line 460 "gram.y"
{
yyval.privinfo.limitprivs = yyvsp[-1].string;
yyval.privinfo.privs = yyvsp[0].string;
}
break;
case 53:
-#line 466 "gram.y"
+#line 465 "gram.y"
{
yyval.runas = NULL;
}
break;
case 54:
-#line 469 "gram.y"
+#line 468 "gram.y"
{
yyval.runas = yyvsp[-1].runas;
}
break;
case 55:
-#line 474 "gram.y"
+#line 473 "gram.y"
{
yyval.runas = ecalloc(1, sizeof(struct runascontainer));
yyval.runas->runasusers = new_member(NULL, MYSELF);
}
break;
case 56:
-#line 479 "gram.y"
+#line 478 "gram.y"
{
yyval.runas = ecalloc(1, sizeof(struct runascontainer));
yyval.runas->runasusers = yyvsp[0].member;
}
break;
case 57:
-#line 484 "gram.y"
+#line 483 "gram.y"
{
yyval.runas = ecalloc(1, sizeof(struct runascontainer));
yyval.runas->runasusers = yyvsp[-2].member;
}
break;
case 58:
-#line 489 "gram.y"
+#line 488 "gram.y"
{
yyval.runas = ecalloc(1, sizeof(struct runascontainer));
/* $$->runasusers = NULL; */
}
break;
case 59:
-#line 494 "gram.y"
+#line 493 "gram.y"
{
yyval.runas = ecalloc(1, sizeof(struct runascontainer));
yyval.runas->runasusers = new_member(NULL, MYSELF);
}
break;
case 60:
-#line 501 "gram.y"
+#line 500 "gram.y"
{
yyval.tag.nopasswd = yyval.tag.noexec = yyval.tag.setenv =
yyval.tag.log_input = yyval.tag.log_output = UNSPEC;
}
break;
case 61:
-#line 505 "gram.y"
+#line 504 "gram.y"
{
yyval.tag.nopasswd = true;
}
break;
case 62:
-#line 508 "gram.y"
+#line 507 "gram.y"
{
yyval.tag.nopasswd = false;
}
break;
case 63:
-#line 511 "gram.y"
+#line 510 "gram.y"
{
yyval.tag.noexec = true;
}
break;
case 64:
-#line 514 "gram.y"
+#line 513 "gram.y"
{
yyval.tag.noexec = false;
}
break;
case 65:
-#line 517 "gram.y"
+#line 516 "gram.y"
{
yyval.tag.setenv = true;
}
break;
case 66:
-#line 520 "gram.y"
+#line 519 "gram.y"
{
yyval.tag.setenv = false;
}
break;
case 67:
-#line 523 "gram.y"
+#line 522 "gram.y"
{
yyval.tag.log_input = true;
}
break;
case 68:
-#line 526 "gram.y"
+#line 525 "gram.y"
{
yyval.tag.log_input = false;
}
break;
case 69:
-#line 529 "gram.y"
+#line 528 "gram.y"
{
yyval.tag.log_output = true;
}
break;
case 70:
-#line 532 "gram.y"
+#line 531 "gram.y"
{
yyval.tag.log_output = false;
}
break;
case 71:
-#line 537 "gram.y"
+#line 536 "gram.y"
{
yyval.member = new_member(NULL, ALL);
}
break;
case 72:
-#line 540 "gram.y"
+#line 539 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, ALIAS);
}
break;
case 73:
-#line 543 "gram.y"
+#line 542 "gram.y"
{
struct sudo_command *c = ecalloc(1, sizeof(*c));
c->cmnd = yyvsp[0].command.cmnd;
}
break;
case 76:
-#line 555 "gram.y"
+#line 554 "gram.y"
{
char *s;
if ((s = alias_add(yyvsp[-2].string, HOSTALIAS, yyvsp[0].member)) != NULL) {
}
break;
case 78:
-#line 565 "gram.y"
+#line 564 "gram.y"
{
list_append(yyvsp[-2].member, yyvsp[0].member);
yyval.member = yyvsp[-2].member;
}
break;
case 81:
-#line 575 "gram.y"
+#line 574 "gram.y"
{
char *s;
if ((s = alias_add(yyvsp[-2].string, CMNDALIAS, yyvsp[0].member)) != NULL) {
}
break;
case 83:
-#line 585 "gram.y"
+#line 584 "gram.y"
{
list_append(yyvsp[-2].member, yyvsp[0].member);
yyval.member = yyvsp[-2].member;
}
break;
case 86:
-#line 595 "gram.y"
+#line 594 "gram.y"
{
char *s;
if ((s = alias_add(yyvsp[-2].string, RUNASALIAS, yyvsp[0].member)) != NULL) {
}
break;
case 89:
-#line 608 "gram.y"
+#line 607 "gram.y"
{
char *s;
if ((s = alias_add(yyvsp[-2].string, USERALIAS, yyvsp[0].member)) != NULL) {
}
break;
case 91:
-#line 618 "gram.y"
+#line 617 "gram.y"
{
list_append(yyvsp[-2].member, yyvsp[0].member);
yyval.member = yyvsp[-2].member;
}
break;
case 92:
-#line 624 "gram.y"
+#line 623 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = false;
}
break;
case 93:
-#line 628 "gram.y"
+#line 627 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = true;
}
break;
case 94:
-#line 634 "gram.y"
+#line 633 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, ALIAS);
}
break;
case 95:
-#line 637 "gram.y"
+#line 636 "gram.y"
{
yyval.member = new_member(NULL, ALL);
}
break;
case 96:
-#line 640 "gram.y"
+#line 639 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, NETGROUP);
}
break;
case 97:
-#line 643 "gram.y"
+#line 642 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, USERGROUP);
}
break;
case 98:
-#line 646 "gram.y"
+#line 645 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, WORD);
}
break;
case 100:
-#line 652 "gram.y"
+#line 651 "gram.y"
{
list_append(yyvsp[-2].member, yyvsp[0].member);
yyval.member = yyvsp[-2].member;
}
break;
case 101:
-#line 658 "gram.y"
+#line 657 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = false;
}
break;
case 102:
-#line 662 "gram.y"
+#line 661 "gram.y"
{
yyval.member = yyvsp[0].member;
yyval.member->negated = true;
}
break;
case 103:
-#line 668 "gram.y"
+#line 667 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, ALIAS);
}
break;
case 104:
-#line 671 "gram.y"
+#line 670 "gram.y"
{
yyval.member = new_member(NULL, ALL);
}
break;
case 105:
-#line 674 "gram.y"
+#line 673 "gram.y"
{
yyval.member = new_member(yyvsp[0].string, WORD);
}
break;
-#line 1699 "gram.c"
+#line 1698 "gram.c"
}
yyssp -= yym;
yystate = *yyssp;
#include <config.h>
#include <sys/types.h>
-#include <sys/param.h>
#include <sys/stat.h>
#include <stdio.h>
#ifdef STDC_HEADERS
#define INSTR 5
-#line 1531 "lex.sudoers.c"
+#line 1530 "lex.sudoers.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 133 "toke.l"
+#line 132 "toke.l"
-#line 1687 "lex.sudoers.c"
+#line 1686 "lex.sudoers.c"
if ( yy_init )
{
case 1:
YY_RULE_SETUP
-#line 134 "toke.l"
+#line 133 "toke.l"
{
LEXTRACE(", ");
LEXRETURN(',');
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 139 "toke.l"
+#line 138 "toke.l"
BEGIN STARTDEFS;
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 141 "toke.l"
+#line 140 "toke.l"
{
BEGIN INDEFS;
LEXTRACE("DEFVAR ");
case 4:
YY_RULE_SETUP
-#line 150 "toke.l"
+#line 149 "toke.l"
{
BEGIN STARTDEFS;
LEXTRACE(", ");
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 156 "toke.l"
+#line 155 "toke.l"
{
LEXTRACE("= ");
LEXRETURN('=');
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 161 "toke.l"
+#line 160 "toke.l"
{
LEXTRACE("+= ");
LEXRETURN('+');
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 166 "toke.l"
+#line 165 "toke.l"
{
LEXTRACE("-= ");
LEXRETURN('-');
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 171 "toke.l"
+#line 170 "toke.l"
{
LEXTRACE("BEGINSTR ");
sudoerslval.string = NULL;
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 178 "toke.l"
+#line 177 "toke.l"
{
LEXTRACE("WORD(2) ");
if (!fill(sudoerstext, sudoersleng))
case 10:
YY_RULE_SETUP
-#line 187 "toke.l"
+#line 186 "toke.l"
{
/* Line continuation char followed by newline. */
sudolineno++;
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 193 "toke.l"
+#line 192 "toke.l"
{
LEXTRACE("ENDSTR ");
BEGIN prev_state;
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 225 "toke.l"
+#line 224 "toke.l"
{
LEXTRACE("BACKSLASH ");
if (!append(sudoerstext, sudoersleng))
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 231 "toke.l"
+#line 230 "toke.l"
{
LEXTRACE("STRBODY ");
if (!append(sudoerstext, sudoersleng))
case 14:
YY_RULE_SETUP
-#line 239 "toke.l"
+#line 238 "toke.l"
{
/* quoted fnmatch glob char, pass verbatim */
LEXTRACE("QUOTEDCHAR ");
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 247 "toke.l"
+#line 246 "toke.l"
{
/* quoted sudoers special char, strip backslash */
LEXTRACE("QUOTEDCHAR ");
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 255 "toke.l"
+#line 254 "toke.l"
{
BEGIN INITIAL;
yyless(0);
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 261 "toke.l"
+#line 260 "toke.l"
{
LEXTRACE("ARG ");
if (!fill_args(sudoerstext, sudoersleng, sawspace))
case 18:
YY_RULE_SETUP
-#line 269 "toke.l"
+#line 268 "toke.l"
{
char *path;
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 287 "toke.l"
+#line 286 "toke.l"
{
char *path;
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 308 "toke.l"
+#line 307 "toke.l"
{
char deftype;
int n;
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 348 "toke.l"
+#line 347 "toke.l"
{
int n;
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 374 "toke.l"
+#line 373 "toke.l"
{
/* cmnd does not require passwd for this user */
LEXTRACE("NOPASSWD ");
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 380 "toke.l"
+#line 379 "toke.l"
{
/* cmnd requires passwd for this user */
LEXTRACE("PASSWD ");
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 386 "toke.l"
+#line 385 "toke.l"
{
LEXTRACE("NOEXEC ");
LEXRETURN(NOEXEC);
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 391 "toke.l"
+#line 390 "toke.l"
{
LEXTRACE("EXEC ");
LEXRETURN(EXEC);
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 396 "toke.l"
+#line 395 "toke.l"
{
LEXTRACE("SETENV ");
LEXRETURN(SETENV);
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 401 "toke.l"
+#line 400 "toke.l"
{
LEXTRACE("NOSETENV ");
LEXRETURN(NOSETENV);
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 406 "toke.l"
+#line 405 "toke.l"
{
LEXTRACE("LOG_OUTPUT ");
LEXRETURN(LOG_OUTPUT);
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 411 "toke.l"
+#line 410 "toke.l"
{
LEXTRACE("NOLOG_OUTPUT ");
LEXRETURN(NOLOG_OUTPUT);
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 416 "toke.l"
+#line 415 "toke.l"
{
LEXTRACE("LOG_INPUT ");
LEXRETURN(LOG_INPUT);
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 421 "toke.l"
+#line 420 "toke.l"
{
LEXTRACE("NOLOG_INPUT ");
LEXRETURN(NOLOG_INPUT);
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 426 "toke.l"
+#line 425 "toke.l"
{
/* empty group or netgroup */
LEXTRACE("ERROR ");
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 432 "toke.l"
+#line 431 "toke.l"
{
/* netgroup */
if (!fill(sudoerstext, sudoersleng))
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 440 "toke.l"
+#line 439 "toke.l"
{
/* group */
if (!fill(sudoerstext, sudoersleng))
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 448 "toke.l"
+#line 447 "toke.l"
{
if (!fill(sudoerstext, sudoersleng))
yyterminate();
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 455 "toke.l"
+#line 454 "toke.l"
{
if (!fill(sudoerstext, sudoersleng))
yyterminate();
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 462 "toke.l"
+#line 461 "toke.l"
{
if (!ipv6_valid(sudoerstext)) {
LEXTRACE("ERROR ");
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 473 "toke.l"
+#line 472 "toke.l"
{
if (!ipv6_valid(sudoerstext)) {
LEXTRACE("ERROR ");
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 484 "toke.l"
+#line 483 "toke.l"
{
LEXTRACE("ALL ");
LEXRETURN(ALL);
YY_BREAK
case 40:
YY_RULE_SETUP
-#line 490 "toke.l"
+#line 489 "toke.l"
{
#ifdef HAVE_SELINUX
LEXTRACE("ROLE ");
YY_BREAK
case 41:
YY_RULE_SETUP
-#line 499 "toke.l"
+#line 498 "toke.l"
{
#ifdef HAVE_SELINUX
LEXTRACE("TYPE ");
YY_BREAK
case 42:
YY_RULE_SETUP
-#line 507 "toke.l"
+#line 506 "toke.l"
{
#ifdef HAVE_PRIV_SET
LEXTRACE("PRIVS ");
YY_BREAK
case 43:
YY_RULE_SETUP
-#line 516 "toke.l"
+#line 515 "toke.l"
{
#ifdef HAVE_PRIV_SET
LEXTRACE("LIMITPRIVS ");
YY_BREAK
case 44:
YY_RULE_SETUP
-#line 525 "toke.l"
+#line 524 "toke.l"
{
got_alias:
if (!fill(sudoerstext, sudoersleng))
YY_BREAK
case 45:
YY_RULE_SETUP
-#line 533 "toke.l"
+#line 532 "toke.l"
{
/* no command args allowed for Defaults!/path */
if (!fill_cmnd(sudoerstext, sudoersleng))
YY_BREAK
case 46:
YY_RULE_SETUP
-#line 541 "toke.l"
+#line 540 "toke.l"
{
BEGIN GOTCMND;
LEXTRACE("COMMAND ");
YY_BREAK
case 47:
YY_RULE_SETUP
-#line 548 "toke.l"
+#line 547 "toke.l"
{
/* directories can't have args... */
if (sudoerstext[sudoersleng - 1] == '/') {
YY_BREAK
case 48:
YY_RULE_SETUP
-#line 563 "toke.l"
+#line 562 "toke.l"
{
LEXTRACE("BEGINSTR ");
sudoerslval.string = NULL;
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 570 "toke.l"
+#line 569 "toke.l"
{
/* a word */
if (!fill(sudoerstext, sudoersleng))
YY_BREAK
case 50:
YY_RULE_SETUP
-#line 578 "toke.l"
+#line 577 "toke.l"
{
LEXTRACE("( ");
LEXRETURN('(');
YY_BREAK
case 51:
YY_RULE_SETUP
-#line 583 "toke.l"
+#line 582 "toke.l"
{
LEXTRACE(") ");
LEXRETURN(')');
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 588 "toke.l"
+#line 587 "toke.l"
{
LEXTRACE(", ");
LEXRETURN(',');
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 593 "toke.l"
+#line 592 "toke.l"
{
LEXTRACE("= ");
LEXRETURN('=');
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 598 "toke.l"
+#line 597 "toke.l"
{
LEXTRACE(": ");
LEXRETURN(':');
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 603 "toke.l"
+#line 602 "toke.l"
{
if (sudoersleng & 1) {
LEXTRACE("!");
YY_BREAK
case 56:
YY_RULE_SETUP
-#line 610 "toke.l"
+#line 609 "toke.l"
{
if (YY_START == INSTR) {
LEXTRACE("ERROR ");
YY_BREAK
case 57:
YY_RULE_SETUP
-#line 622 "toke.l"
+#line 621 "toke.l"
{ /* throw away space/tabs */
sawspace = true; /* but remember for fill_args */
}
YY_BREAK
case 58:
YY_RULE_SETUP
-#line 626 "toke.l"
+#line 625 "toke.l"
{
sawspace = true; /* remember for fill_args */
sudolineno++;
YY_BREAK
case 59:
YY_RULE_SETUP
-#line 632 "toke.l"
+#line 631 "toke.l"
{
BEGIN INITIAL;
sudolineno++;
YY_BREAK
case 60:
YY_RULE_SETUP
-#line 640 "toke.l"
+#line 639 "toke.l"
{
LEXTRACE("ERROR ");
LEXRETURN(ERROR);
case YY_STATE_EOF(STARTDEFS):
case YY_STATE_EOF(INDEFS):
case YY_STATE_EOF(INSTR):
-#line 645 "toke.l"
+#line 644 "toke.l"
{
if (YY_START != INITIAL) {
BEGIN INITIAL;
YY_BREAK
case 61:
YY_RULE_SETUP
-#line 655 "toke.l"
+#line 654 "toke.l"
ECHO;
YY_BREAK
-#line 2485 "lex.sudoers.c"
+#line 2484 "lex.sudoers.c"
case YY_END_OF_BUFFER:
{
return 0;
}
#endif
-#line 655 "toke.l"
+#line 654 "toke.l"
struct path_list {
char *path;