From 35708db02403b5066d4efc455e802c666ed01dc9 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Tue, 8 Jul 2025 15:14:16 +0200 Subject: [PATCH] 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 [Julien: add link to upstream commit introducing the issue] Signed-off-by: Julien Olivain --- package/sudo/sudo.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 4e1405eaf1..f57a86805a 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -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