From aaef99b69672d8f572af3d739e87547d5bfb15b2 Mon Sep 17 00:00:00 2001 From: axxx007xxxz Date: Thu, 2 Mar 2017 21:10:31 +0100 Subject: [PATCH] META-INF: update-binary: Remove deprecated chown command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 does not require support for that, but for backward compatibility GNU chown supports ‘.’ so long as no ambiguity results. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire owner‘.’group happens to identify a user whose name contains ‘.’." Source: http://gnu.org/software/coreutils/manual/html_node/chown-invocation.html#chown-invocation. --- 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 acaaf04..53e444e 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; chown -R $1:$2 $i; + chown -R $1:$2 $i; find "$i" -type d -exec chmod $3 {} +; find "$i" -type f -exec chmod $4 {} +; done;