-
Notifications
You must be signed in to change notification settings - Fork 666
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
Add setresuid and setresgid #448
Conversation
Looks good. A couple of minor things:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small request regarding the markup in CHANGELOG.md
@@ -12,6 +12,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). | |||
- Added function `epoll_create1` and bitflags `EpollCreateFlags` in | |||
`::nix::sys::epoll` in order to support `::libc::epoll_create1`. | |||
([#410](https://github.com/nix-rust/nix/pull/410)) | |||
- Added setresuid and setresgid for Linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please markup the identifiers as code and reference the module they live in (::nix::unistd
).
@@ -587,6 +588,38 @@ mod linux { | |||
Errno::result(res).map(drop) | |||
} | |||
|
|||
/// Sets the real, effective, and saved uid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a real nit, but when rendered I think this will juxtapose the first line and "Further Reading", so it probably makes sense to add a period after the first line or do something like ([see setresuid(2)][...])
Thanks for making the updates! |
These were both recently added to libc, add wrappers. Signed-off-by: Dylan Reid <dgreid@chromium.org> --- Changes since v2: Updated function comments and CHANGELOG Changes since v1: Add function comments, update CHANGELOG
Looks good. @homu r+ |
📌 Commit 6c85f43 has been approved by |
⚡ Test exempted - status |
Add setresuid and setresgid These were both recently added to libc, add wrappers. Signed-off-by: Dylan Reid <dgreid@chromium.org>
Thanks |
These were both recently added to libc, add wrappers.
Signed-off-by: Dylan Reid dgreid@chromium.org