Use stat -c, not --printf, to be compatible with busybox stat.
This commit is contained in:
parent
aa17af4674
commit
50a5ff1573
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ add_db_entry() {
|
||||||
# On Linux, we can handle ACLs and xattrs too.
|
# On Linux, we can handle ACLs and xattrs too.
|
||||||
ACL="$(getfacl -cEsp -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)"
|
ACL="$(getfacl -cEsp -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)"
|
||||||
XATTR="$(getfattr -dh -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)"
|
XATTR="$(getfattr -dh -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)"
|
||||||
if printf "%s %s %s %s\\n" "$(printf "%s" "$1" | base64 -w 0 2>/dev/null)" "$(TZ=UTC stat --printf '%.9Y %.9X %U:%G %.4a' -- "$1" 2>/dev/null)" "${ACL:--}" \
|
if printf "%s %s %s %s\\n" "$(printf "%s" "$1" | base64 -w 0 2>/dev/null)" "$(TZ=UTC stat -c '%.9Y %.9X %U:%G %.4a' -- "$1" 2>/dev/null)" "${ACL:--}" \
|
||||||
"${XATTR:--}" >>"$DB_TMP"; then
|
"${XATTR:--}" >>"$DB_TMP"; then
|
||||||
(( VERBOSE == 1 )) && log "$1"
|
(( VERBOSE == 1 )) && log "$1"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue