-
Notifications
You must be signed in to change notification settings - Fork 682
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
expose AT_EMPTY_PATH flag with linkat / LinkatFlags #1884
Comments
Yeah, that would be good. Care to submit a PR? |
Ok, I will give it a try |
What is the policy regarding api breakage? I am tempted to just make the
|
Breaking changes can be introduced in the following 0.27 release AFAIK.
It seems that this feature is exclusive to Linux and Android (fuchsia also has pub fn linkat<P: ?Sized + NixPath>(
olddirfd: Option<RawFd>,
oldpath: Option<&P>,
newdirfd: Option<RawFd>,
newpath: &P,
flags: LinkatFlags,
) -> Result<()> Thought I am not sure if it is a good idea to have a separate implementation just for Linux and Android... |
Ok, so the linked pr now just swaps |
Currently you can't set this flag..
This is useful in the following situation:
You create a temporary file with
O_TMPFILE
and withoutO_EXCL
, then you want to link it somewhere, but have no old file path you could givelinkat
.The text was updated successfully, but these errors were encountered: