-
Notifications
You must be signed in to change notification settings - Fork 268
src/newgrp.c: sg(1): Various source code improvements and bug fixes #1461
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
Open
alejandro-colomar
wants to merge
22
commits into
shadow-maint:master
Choose a base branch
from
alejandro-colomar:sg
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
461e4a0
src/newgrp.c: Document '-l'
alejandro-colomar ff80309
src/newgrp.c: sg(1): Refactor, to remove 'else' branch
alejandro-colomar ae4974a
src/newgrp.c: sg(1): -c: Fail if the option is used without an argument
alejandro-colomar b55d73b
src/newgrp.c: Split conditional block
alejandro-colomar acb6da1
src/newgrp.c: Use argv instead of argc to check an argument
alejandro-colomar e07b06d
src/newgrp.c: Check '-l' and '-' in the documented order
alejandro-colomar f76e18f
src/newgrp.c: newgrp(1): Remove 'else's after 'goto'
alejandro-colomar b214255
src/newgrp.c: De-duplicate check
alejandro-colomar eb01dbc
src/newgrp.c: Separate code handling group name and code handling com…
alejandro-colomar 1df97c8
src/newgrp.c: Refactor conditionals to de-duplicate code
alejandro-colomar fc4443a
src/newgrp.c: Fix indentation
alejandro-colomar 3d964c5
src/newgrp.c: Fail if there are trailing (unexpected) arguments
alejandro-colomar e7f6ca9
src/newgrp.c: Remove incorrect comment
alejandro-colomar ea162c9
src/newgrp.c: sg(1): Use 'goto failure;' to fail
alejandro-colomar 63805d1
lib/prototypes.h: Fix indentation
alejandro-colomar 2aae923
src/newgrp.c: Report SHADOW_AUDIT_FAILURE on failure
alejandro-colomar 1076a30
src/newgrp.c: Fix error handling
alejandro-colomar acccf15
src/newgrp.c: syslog_sg(): Use Prog instead of its pattern
alejandro-colomar 8ee07de
src/newgrp.c: Use idiomatic pointer arithmetic notation
alejandro-colomar 68031eb
src/newgrp.c: Remove redundant comment
alejandro-colomar e170755
src/newgrp.c: Accept both -l and - in the same command
alejandro-colomar f355953
src/newgrp.c: Remove redundant input validation
alejandro-colomar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.