From 622d2088f34446725202a5f22afd6e2e39b65217 Mon Sep 17 00:00:00 2001 From: Michal Kubecek Date: Mar 24 2024 21:42:08 +0000 Subject: scripts/sequence-patch.sh: handle spaces in file names The "find | xargs" pattern without -print0 and -0 does not handle file names with spaces correctly. As there is no actual need for xargs, rewrite the line to uses "find -exec" instead. --- diff --git a/scripts/sequence-patch.sh b/scripts/sequence-patch.sh index bdfac19..87cafcd 100755 --- a/scripts/sequence-patch.sh +++ b/scripts/sequence-patch.sh @@ -499,7 +499,7 @@ fi # Create fresh $SCRATCH_AREA/linux-$SRCVERSION. if ! [ -d $ORIG_DIR ]; then unpack_tarball "$SRCVERSION" "$ORIG_DIR" "$URL" - find $ORIG_DIR -type f | xargs chmod a-w,a+r + find $ORIG_DIR -type f -exec chmod a-w,a+r + fi if $VANILLA; then