[YOCTO #16321]

In version 1.9.17p2, the line that the recipe uses to add the 'wheel'
group to the sudoers file does not exist. This updates the sed usage to
the actual line in question.

Signed-off-by: Nate Kent <[email protected]>
Tested-by: Siva Balasubramanian <[email protected]>
---
v2: add "sudo" shortlog prefix, fix Bugzilla tag, removed Upstream-Status
 meta/recipes-extended/sudo/sudo_1.9.17p2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb 
b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb
index 7dfa0cef6c..489c0db09d 100644
--- a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb
+++ b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb
@@ -37,7 +37,7 @@ do_install:append () {
                install -D -m 644 ${UNPACKDIR}/sudo.pam 
${D}/${sysconfdir}/pam.d/sudo
                if ${@bb.utils.contains('PACKAGECONFIG', 'pam-wheel', 'true', 
'false', d)} ; then
                        echo 'auth       required     pam_wheel.so use_uid' 
>>${D}${sysconfdir}/pam.d/sudo
-                       sed -i 's/# \(%wheel ALL=(ALL) ALL\)/\1/' 
${D}${sysconfdir}/sudoers
+                       sed -i 's/# \(%wheel ALL=(ALL:ALL) ALL\)/\1/' 
${D}${sysconfdir}/sudoers
                fi
        fi
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239079): 
https://lists.openembedded.org/g/openembedded-core/message/239079
Mute This Topic: https://lists.openembedded.org/mt/119865459/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to