X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-extended%2Fsudo%2Ffiles%2Fsudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-extended%2Fsudo%2Ffiles%2Fsudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=268a0abc8e64256d4176b2cf61c1680ddb4b6a61;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-extended/sudo/files/sudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch b/meta-starlingx/meta-stx-integ/recipes-extended/sudo/files/sudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch deleted file mode 100644 index 268a0ab..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-extended/sudo/files/sudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch +++ /dev/null @@ -1,86 +0,0 @@ -From 1a9754ec64f703542a5faf9ae9c5058b50047b26 Mon Sep 17 00:00:00 2001 -From: "Sar Ashki, Babak" -Date: Wed, 11 Dec 2019 19:43:19 -0800 - sudo-1.8.23-fix-double-quote-parsing-for-Defaults-values.patch - ---- - plugins/sudoers/regress/sudoers/test2.json.ok | 6 +++--- - plugins/sudoers/regress/sudoers/test2.toke.ok | 6 +++--- - plugins/sudoers/toke.c | 2 +- - plugins/sudoers/toke.l | 2 +- - 4 files changed, 8 insertions(+), 8 deletions(-) - -diff --git a/plugins/sudoers/regress/sudoers/test2.json.ok b/plugins/sudoers/regress/sudoers/test2.json.ok -index 8e6656e..769c3fd 100644 ---- a/plugins/sudoers/regress/sudoers/test2.json.ok -+++ b/plugins/sudoers/regress/sudoers/test2.json.ok -@@ -34,7 +34,7 @@ - }, - { - "Binding": [ -- { "username": "%them" } -+ { "usergroup": "them" } - ], - "Options": [ - { "set_home": true } -@@ -42,7 +42,7 @@ - }, - { - "Binding": [ -- { "username": "%: non UNIX 0 c" } -+ { "nonunixgroup": " non UNIX 0 c" } - ], - "Options": [ - { "set_home": true } -@@ -50,7 +50,7 @@ - }, - { - "Binding": [ -- { "username": "+net" } -+ { "netgroup": "net" } - ], - "Options": [ - { "set_home": true } -diff --git a/plugins/sudoers/regress/sudoers/test2.toke.ok b/plugins/sudoers/regress/sudoers/test2.toke.ok -index fcd7b73..63e1648 100644 ---- a/plugins/sudoers/regress/sudoers/test2.toke.ok -+++ b/plugins/sudoers/regress/sudoers/test2.toke.ok -@@ -29,9 +29,9 @@ DEFAULTS_HOST BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR - # - DEFAULTS_USER BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR - DEFAULTS_USER BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR --DEFAULTS_USER BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR --DEFAULTS_USER BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR --DEFAULTS_USER BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR -+DEFAULTS_USER BEGINSTR STRBODY ENDSTR USERGROUP DEFVAR -+DEFAULTS_USER BEGINSTR STRBODY ENDSTR USERGROUP DEFVAR -+DEFAULTS_USER BEGINSTR STRBODY ENDSTR NETGROUP DEFVAR - - # - DEFAULTS_RUNAS BEGINSTR STRBODY ENDSTR WORD(4) DEFVAR -diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c -index d0dd5e3..784218b 100644 ---- a/plugins/sudoers/toke.c -+++ b/plugins/sudoers/toke.c -@@ -2512,7 +2512,7 @@ YY_RULE_SETUP - LEXTRACE("ERROR "); /* empty string */ - LEXRETURN(ERROR); - } -- if (prev_state == INITIAL) { -+ if (prev_state == INITIAL || prev_state == GOTDEFS) { - switch (sudoerslval.string[0]) { - case '%': - if (sudoerslval.string[1] == '\0' || -diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l -index d275a26..638d9ea 100644 ---- a/plugins/sudoers/toke.l -+++ b/plugins/sudoers/toke.l -@@ -178,7 +178,7 @@ DEFVAR [a-z_]+ - LEXTRACE("ERROR "); /* empty string */ - LEXRETURN(ERROR); - } -- if (prev_state == INITIAL) { -+ if (prev_state == INITIAL || prev_state == GOTDEFS) { - switch (sudoerslval.string[0]) { - case '%': - if (sudoerslval.string[1] == '\0' ||