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. |
ikerexxe
left a comment
There was a problem hiding this comment.
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 <[email protected]>
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 <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
Reported-by: Chris Hofstaedtler <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
hallyn
left a comment
There was a problem hiding this comment.
lgtm, but let's wait until Iker gives a final ok before merging.
I see. Sorry for the noise. |
ikerexxe
left a comment
There was a problem hiding this comment.
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