1 From 8e424296ce2af4a5a7392c38a31f8723f9b9fbda Mon Sep 17 00:00:00 2001
2 From: Denys Dmytriyenko <denys@ti.com>
3 Date: Thu, 7 Apr 2016 20:43:13 -0400
4 Subject: [PATCH] opkg-build: re-do find/ls code to not fail on filenames with
7 Signed-off-by: Denys Dmytriyenko <denys@ti.com>
9 opkg-build | 9 ++++-----
10 1 file changed, 4 insertions(+), 5 deletions(-)
12 diff --git a/opkg-build b/opkg-build
13 index a9ccad2..07305b2 100755
17 # 2003-04-25 rea@sr.unh.edu
18 # Updated to work on Familiar Pre0.7rc1, with busybox tar.
19 # Note it Requires: binutils-ar (since the busybox ar can't create)
20 -# For UID debugging it needs a better "find".
24 @@ -47,12 +46,12 @@ pkg_appears_sane() {
28 - tilde_files=`find . -name '*~'`
29 + tilde_files=`find . -name '*~' -ls -printf '\\\n'`
30 if [ -n "$tilde_files" ]; then
31 if [ "$noclean" = "1" ]; then
32 echo "*** Warning: The following files have names ending in '~'.
33 You probably want to remove them: " >&2
35 + echo -e $tilde_files
37 echo "*** Error: Fail to list files have names ending in '~'."
39 @@ -64,12 +63,12 @@ You probably want to remove them: " >&2
43 - large_uid_files=`find . -uid +99 || true`
44 + large_uid_files=`find . -uid +99 -ls -printf '\\\n' || true`
46 if [ "$ogargs" = "" ] && [ -n "$large_uid_files" ]; then
47 echo "*** Warning: The following files have a UID greater than 99.
48 You probably want to chown these to a system user: " >&2
49 - ls -ld $large_uid_files
50 + echo -e $large_uid_files
52 echo "*** Error: Fail to list files have a UID greater than 99."