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] https://gitlab.com/buildroot.org/buildroot/-/commit/ee86844e632d5760355154ea4e928c9228f3dfd1 [2] https://github.com/sudo-project/sudo/commit/7c121ff8340c6fa551ba4997dde9d450cf74e40c Signed-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>
This commit is contained in:
committed by
Julien Olivain
parent
30fc97c2c5
commit
35708db024
@@ -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