From e749018f7193ead85a37b8c69fc666d2b877fd3e Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Fri, 1 Aug 2014 21:52:04 +0200 Subject: [PATCH] Don't restore permissions when untaring We're running as root, so those aren't the defaults, but we're unpacking on vfat, so trying to preserve permissions fails horribly. --- kindle/koreader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindle/koreader.sh b/kindle/koreader.sh index bcbf48823..3b655175a 100755 --- a/kindle/koreader.sh +++ b/kindle/koreader.sh @@ -88,7 +88,7 @@ if [ -f "${NEWUPDATE}" ] ; then if [ -x "${GNUTAR_BIN}" ] ; then # Let our checkpoint script handle the detailed visual feedback... eips_print_bottom_centered "Updating koreader" 1 - ${GNUTAR_BIN} -C "/mnt/us" --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT' -xf "${NEWUPDATE}" + ${GNUTAR_BIN} -C "/mnt/us" --no-same-owner --no-same-permissions --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT' -xf "${NEWUPDATE}" else # Fall back to busybox tar eips_print_bottom_centered "Updating koreader . . ." 1