-
Notifications
You must be signed in to change notification settings - Fork 257
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
ef04200
src/newgrp.c: Document '-l'
alejandro-colomar b6d4f9b
src/newgrp.c: sg(1): Refactor, to remove 'else' branch
alejandro-colomar 56166b6
src/newgrp.c: sg(1): -c: Fail if the option is used without an argument
alejandro-colomar 2b8316a
src/newgrp.c: Split conditional block
alejandro-colomar 6843c19
src/newgrp.c: Use argv instead of argc to check an argument
alejandro-colomar 028e5c7
src/newgrp.c: Check '-l' and '-' in the documented order
alejandro-colomar 3a0892d
src/newgrp.c: newgrp(1): Remove 'else's after 'goto'
alejandro-colomar 4246adf
src/newgrp.c: De-duplicate check
alejandro-colomar 1f62687
src/newgrp.c: Separate code handling group name and code handling com…
alejandro-colomar 67834ed
src/newgrp.c: Refactor conditionals to de-duplicate code
alejandro-colomar f11890b
src/newgrp.c: Fix indentation
alejandro-colomar 85706b5
src/newgrp.c: Fail if there are trailing (unexpected) arguments
alejandro-colomar 499eade
src/newgrp.c: Remove incorrect comment
alejandro-colomar 3573e24
src/newgrp.c: sg(1): Use 'goto failure;' to fail
alejandro-colomar d78ede7
lib/prototypes.h: Fix indentation
alejandro-colomar 89c8900
src/newgrp.c: Report SHADOW_AUDIT_FAILURE on failure
alejandro-colomar 657823c
src/newgrp.c: Fix error handling
alejandro-colomar 919b2c7
src/newgrp.c: syslog_sg(): Use Prog instead of its pattern
alejandro-colomar 28aae35
src/newgrp.c: Use idiomatic pointer arithmetic notation
alejandro-colomar e4266db
src/newgrp.c: Remove redundant comment
alejandro-colomar 29c24fe
src/newgrp.c: Accept both -l and - in the same command
alejandro-colomar df3bb4c
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.