-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4.0 portability regression because of openat(AT_FDCWD #701
Comments
|
Technically there should be a |
ncopa
added a commit
to ncopa/rsync
that referenced
this issue
Jan 15, 2025
tridge
pushed a commit
that referenced
this issue
Jan 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The 3.4.0 release blindly assumes that
openat
andAT_FDCWD
are available when certain other things are, but this is not the case e.g. on ancient glibc. This fixes build on glibc 2.3.6:Just like the
O_*
checks here, this added check relies onAT_FDCWD
being a macro (rather than e.g. part of anenum
) on systems where it's present - I don't know whether that is guaranteed or perhaps not.It's unfortunate that this fallback code keeps some of the security issues exposed - perhaps this is worth warning about somewhere beyond the source code comment? For example, maybe
configure
should fail on such systems by default, and require an "accept risks" option to override that.The text was updated successfully, but these errors were encountered: