Skip to content

syscall: build without AT_SYMLINK_NOFOLLOW#1026

Open
steadytao wants to merge 4 commits into
RsyncProject:masterfrom
steadytao:fix/no-at-symlink-nofollow
Open

syscall: build without AT_SYMLINK_NOFOLLOW#1026
steadytao wants to merge 4 commits into
RsyncProject:masterfrom
steadytao:fix/no-at-symlink-nofollow

Conversation

@steadytao

Copy link
Copy Markdown
Member

Addresses the upstream portion of #1025.

do_lstat_at() selected its fstatat() implementation whenever symlink support was enabled. Older systems such as macOS 10.6 support symlinks but do not define AT_FDCWD or AT_SYMLINK_NOFOLLOW so the unconditional reference to AT_SYMLINK_NOFOLLOW prevented syscall.c from compiling. This falls back to do_lstat() unless both AT_FDCWD and AT_SYMLINK_NOFOLLOW are available. The same availability check is applied to do_lchown_at() because its fchownat() implementation also requires AT_SYMLINK_NOFOLLOW.

@steadytao

Copy link
Copy Markdown
Member Author

@tridge Should certainly be in 3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant