Skip to contentSkip to conversation

sudo: fixed wrong `chmod` path

PATCH New Mihai Lindner 1 participant 1 message May 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sudo: fixed wrong `chmod` path

Placed $D between braces ${D} to be correctly expanded to the workdir path, instead of a path relative to host rootfs. Currently, bitbake sudo fails on host systems where sudo is not installed.

---
 meta/recipes-extended/sudo/sudo_1.8.4p4.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-extended/sudo/sudo_1.8.4p4.bb +3 -3
index 2315322..20c4a14 100644
@@ -1,6 +1,6 @@
 require sudo.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
            file://libtool.patch \
@@ -24,6 +24,6 @@ do_install_append () {
 		fi
 	done
 
-	chmod 4111 $D/usr/bin/sudo
-	chmod 0440 $D/etc/sudoers
+	chmod 4111 ${D}/usr/bin/sudo
+	chmod 0440 ${D}/etc/sudoers
 }

-- 1.7.10