Skip to content

Commit 4b4b301

Browse files
committed
Revert "Work around date bug in Tesla firmware 2025.44.3"
This reverts commit a6f342c. Reason: doesn't work because while the timestamps of the symlinks in the lower can be changed, what's needed is for the timestamps of the files they point to to be changed, which this didn't/can't do.
1 parent db67ef4 commit 4b4b301

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

run/archiveloop

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ function archive_teslacam_clips () {
442442
local -r sentrylist_archived=/tmp/sentry_files_archived
443443
local -r sentrylist_previously_archived=/mutable/sentry_files_archived
444444
local -r ignorelist=/tmp/ignore_files
445-
local -r datefixlist=/tmp/maxdate_files
446445

447446
# Find files by name only. Don't follow the symlinks yet, since that
448447
# would cause all snapshots to be mounted.
@@ -500,23 +499,6 @@ function archive_teslacam_clips () {
500499
# remove the short files from the list of files to be archived
501500
prunefile "${sentrylist}" "${ignorelist}"
502501

503-
# Tesla firmware 2025.44.3 introduced a bug that gives some files a timestamp
504-
# somewhere in the year 2107 (the maximum value for FAT32), which isn't handled
505-
# properly by various 32-bit linux tools, including rsync.
506-
# Find those files and set their timestamp to something managable on 32-bit systems
507-
# before running rsync.
508-
if [[ -s "${sentrylist}" ]] && [[ "$(getconf LONG_BIT)" = "32" ]]
509-
then
510-
(cd "$overlaymerged"; xargs -a "${sentrylist}" echo "find -L" | while read -r line
511-
do
512-
eval "$line \( -newerat 21000101 -printf '%p\n' \)"
513-
done) > ${datefixlist}
514-
if [[ -s "${datefixlist}" ]]
515-
then
516-
(cd "${overlaymerged}"; xargs -a "${datefixlist}" touch)
517-
fi
518-
fi
519-
520502
# apply custom removals/additions
521503
filterfile "${sentrylist}"
522504

0 commit comments

Comments
 (0)