From 9e3135e8d96f9b5e88e46ec34ce14b669f6b31e6 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Thu, 2 Mar 2017 16:35:38 -0400 Subject: [PATCH] Backend: ensure we've got a POSIX accepting chown via our busybox - per https://github.com/osm0sis/AnyKernel2/pull/10#issuecomment-283771783 --- META-INF/com/google/android/update-binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 53e444e..bba2357 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -16,7 +16,7 @@ show_progress() { echo "progress $1 $2" > $OUTFD; } set_perm_recursive() { dirs=$(echo $* | $bb awk '{ print substr($0, index($0,$5)) }'); for i in $dirs; do - chown -R $1:$2 $i; + $bb chown -R $1:$2 $i; find "$i" -type d -exec chmod $3 {} +; find "$i" -type f -exec chmod $4 {} +; done;