Skip to content

Backup silently drops extended attributes it cannot read #596

Open

Description

@stefanwichmann

LocalSourceSaveOptions::map_entry (backend/ignore/mapper.rs, 0.13.0 and current main) catches a failure from xattrs(), logs "ignoring error obtaining xargs" and yields the entry with no extended attributes. The snapshot then records the entry as having none, and nothing reaches the caller: #561's RusticProgress::error and error_count do not cover it.

xattrs() also fails as a whole when one xattr::get fails, so one unreadable attribute discards the rest.

Repro (macOS):

echo hi > f; xattr -w com.example.k v f
chmod +a "everyone deny readextattr" f
# back up f: content stored, attributes empty, no error

Wanted: report the failure like other source errors (e.g. through RusticProgress::error during archival and error_count), so a caller can tell "no attributes" from "attributes not read".

Activity

  1. added
    S-triageStatus: Waiting for a maintainer to triage this issue/PR
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions