-
Notifications
You must be signed in to change notification settings - Fork 251
Remove dead beef #1230
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
Remove dead beef #1230
Conversation
d959af8
to
22f49d8
Compare
9785675
to
9c7bd91
Compare
4bb6df2 commit message has a stray "f" at the end |
9c7bd91
to
239bfe6
Compare
Thanks! That was a glitch of squashing a commit with a dummy message, and forgetting to remove the name. |
8e57d32
to
8c91195
Compare
@ikerexxe This one is really trivial. I'll push it higher in the priority list. Please review. |
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.
While reviewing the getspnam
related code, I found that lib/xgetspnam.c
still contains a reference to it. I guess we should remove that file too.
Hmmm, thanks! I'll push a commit removing that file. Let's see if it passes CI cleanly. |
Ahh, that file defines |
We didn't even have prototypes for these APIs since long ago, when the prototypes were removed, but misteriously the implementations remained. Both glibc and musl provide getspnam(3), so this file was effectively being ignored by the compiler. Just remove it. Also remove the check for getspnam, which isn't used elsewhere. Fixes: 0ee095a (2007-10-07; "[svn-upgrade] Integrating new upstream version, shadow (4.0.7)") Closes: <shadow-maint#1228> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Both glibc and musl provide getusershell(3). It's an API from 4.3BSD, according to the manual page, so let's assume it exists everywhere that we would care, even if it's not in POSIX. Reported-by: Chris Hofstaedtler <zeha@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Reported-by: Chris Hofstaedtler <zeha@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
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.
lgtm, but let's wait until Iker gives a final ok before merging.
I see. Sorry for the noise. |
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.
LGTM! Let's merge the changes.
Thank you both!
No problem. That code is rather convoluted and difficult to read correctly. That's why I do what I do, indeed. :-) |
We didn't even have prototypes for these APIs since long ago, when the prototypes were removed, but misteriously the implementations remained.
Both glibc and musl provide getspnam(3), so this file was effectively being ignored by the compiler. Just remove it.
Also remove the check for getspnam, which isn't used elsewhere.
Fixes: 0ee095a (2007-10-07; "[svn-upgrade] Integrating new upstream version, shadow (4.0.7)")
Closes: #1228
Revisions:
v2
v2b
v2c
v2d
v2e
v3f
v3g
v3h
v4
v5
v5b