Skip to content

Conversation

@naoNao89
Copy link

@naoNao89 naoNao89 commented Nov 27, 2025

Enable passing -1 (no-change) to setresuid/setresgid by changing signatures from Uid to Option<Uid>. None maps to -1 via wrapping arithmetic. Based on PR #1009/#1305 approach. Includes comprehensive tests for both Some and None cases. Fixes setresgid doc bug.

Fixes: #931

- Change signature to accept Option<Uid/Gid>
- None maps to -1 via wrapping arithmetic
- Add comprehensive tests for both Some and None cases
- Fix setresgid documentation link (was pointing to setresuid)
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.

setresuid doesn't support no-change for any of its arguments

1 participant