mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/sudo: fix SUDO_ENABLE_SUDO_GROUP_RULE following version bump
Since the version bump of sudo to 1.9.17p1 [1], the sed command in SUDO_ENABLE_SUDO_GROUP_RULE no longer matches the the line in the example sudoers file shipped with the sudo package. This is due to upstream commit [2]. This commit fixes the regexp to match the new sudoers file. [1]ee86844e63[2]7c121ff834Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> [Julien: add link to upstream commit introducing the issue] Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit35708db024) Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
This commit is contained in:
committed by
Titouan Christophe
parent
0b267a5f6c
commit
54773e6c1e
@@ -73,7 +73,7 @@ define SUDO_USERS
|
||||
endef
|
||||
|
||||
define SUDO_ENABLE_SUDO_GROUP_RULE
|
||||
$(SED) '/^# \%sudo\tALL=(ALL:ALL) ALL/s/^# //' $(TARGET_DIR)/etc/sudoers
|
||||
$(SED) '/^# \%sudo ALL=(ALL:ALL) ALL/s/^# //' $(TARGET_DIR)/etc/sudoers
|
||||
endef
|
||||
SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_ENABLE_SUDO_GROUP_RULE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user