More compatibility fixes for busybox.
This commit is contained in:
parent
1740d54bfb
commit
875efc4c63
1 changed files with 2 additions and 2 deletions
|
|
@ -209,11 +209,11 @@ restore_attributes() {
|
||||||
|
|
||||||
# Restore {a,m}times (and ACLs on Linux).
|
# Restore {a,m}times (and ACLs on Linux).
|
||||||
if [[ "$PLATFORM" == "Linux" ]]; then
|
if [[ "$PLATFORM" == "Linux" ]]; then
|
||||||
touch -m -d "$(date --date="19700101 00:00:00 + ${DB_MTIMES[$ID]} seconds" +'%Y/%m/%d %H:%M:%S.%N' 2>/dev/null)" -- "$PATHNAME" 2>/dev/null || {
|
touch -m -d "$(date -d "@${DB_MTIMES[$ID]}" +'%Y/%m/%d %H:%M:%S.%N' 2>/dev/null)" -- "$PATHNAME" 2>/dev/null || {
|
||||||
warn "Failed to restore mtime: $PATHNAME"
|
warn "Failed to restore mtime: $PATHNAME"
|
||||||
(( WARN++ ))
|
(( WARN++ ))
|
||||||
}
|
}
|
||||||
touch -a -d "$(date --date="19700101 00:00:00 + ${DB_ATIMES[$ID]} seconds" +'%Y/%m/%d %H:%M:%S.%N' 2>/dev/null)" -- "$PATHNAME" 2>/dev/null || {
|
touch -a -d "$(date -d "@${DB_ATIMES[$ID]}" +'%Y/%m/%d %H:%M:%S.%N' 2>/dev/null)" -- "$PATHNAME" 2>/dev/null || {
|
||||||
warn "Failed to restore atime: $PATHNAME"
|
warn "Failed to restore atime: $PATHNAME"
|
||||||
(( WARN++ ))
|
(( WARN++ ))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue