From 3814fe1d66b3f84a676892f603524aa62cfd3626 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Mon, 9 Sep 2024 21:20:31 +0100 Subject: [PATCH] Don't double base64 encode the xattrs. --- gitattributesdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitattributesdb b/gitattributesdb index fccf2d5..26c153a 100755 --- a/gitattributesdb +++ b/gitattributesdb @@ -87,7 +87,7 @@ add_db_entry() { if [[ "$PLATFORM" == "Linux" ]]; then # On Linux, we can handle ACLs and xattrs too. ACL="$(getfacl -cEsp -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)" - XATTR="$(getfattr -dhe base64 -- "$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:--}" \ "${XATTR:--}" >>"$DB_TMP"; then (( VERBOSE == 1 )) && log "$1"