From f17cb420ea6d5b55831a8564ebf8ea64fc47a2c7 Mon Sep 17 00:00:00 2001 From: elig0n <31196036+elig0n@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:03:10 +0300 Subject: [PATCH] Update termux-backup.in Use one 'find' run to make sure usr/ files are accessible --- scripts/termux-backup.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/termux-backup.in b/scripts/termux-backup.in index 99c4735..4c05bb4 100644 --- a/scripts/termux-backup.in +++ b/scripts/termux-backup.in @@ -132,8 +132,7 @@ else fi msg "Ensure that all files and directories are accessible..." -find "@TERMUX_BASE_DIR@/usr" -type d -print0 | xargs -0 -r chmod u+rx || true -find "@TERMUX_BASE_DIR@/usr" -type f -print0 | xargs -0 -r chmod u+r || true +find "@TERMUX_BASE_DIR@/usr" -type d,f -print0 | xargs -0 -r chmod u+rX || true msg "Backing up installed packages..." tar --warning=no-file-ignored $TAR_EXTRA_OPTS -c \