Skip to content
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

Support additional file objects - hardlinks #9

Open
rbtcollins opened this issue Aug 5, 2022 · 2 comments
Open

Support additional file objects - hardlinks #9

rbtcollins opened this issue Aug 5, 2022 · 2 comments

Comments

@rbtcollins
Copy link
Owner

No description provided.

@ChrisDenton
Copy link

NtSetInformationFile may be useful here. Specifically, using the FileLinkInformation class with the FILE_LINK_INFORMATION data structure.

@rbtcollins
Copy link
Owner Author

RootDirectory permits safe construction of the link object itself, and the existing file handle is provided in the call to NtSetInformationFile, so this is safe.

For unix, linkat takes two dir handles, so similarly safe.

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

No branches or pull requests

2 participants