Skip to content

Lstat the regular-file destination in the receiver candidate pass #8422

Open

Description

@oferchen

Part of the 0.6.5 release: Correctness blockers.

Legacy task 1494. The receiver must stat a regular-file destination with lstat semantics (follow only for keep_dirlinks dirs), as upstream recv_generator does (generator.c:1745 link_stat; flist.c:511-527). Evidence: crates/transfer/src/receiver/transfer/candidates.rs:102-104 documents a follow-stat, and :454 uses fs::metadata, while the dry-run planner uses symlink_metadata, so -n and a real run disagree. Check against PR #8228's anchored stats first. Verify: a destination symlink in place of a file is handled identically in -n and real runs, matching 3.5.1.

Activity

  1. added this to the v0.6.5 milestone on Nov 18, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions