Fix typo ( ) and fix a compilation warning (wrong const).
This commit is contained in:
parent
a45b272a2f
commit
2ba18ea4a9
@ -49,7 +49,7 @@
|
|||||||
*/
|
*/
|
||||||
bool hushed (const char *username)
|
bool hushed (const char *username)
|
||||||
{
|
{
|
||||||
const struct passwd *pw;
|
struct passwd *pw;
|
||||||
char *hushfile;
|
char *hushfile;
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
bool found;
|
bool found;
|
||||||
@ -65,7 +65,7 @@ bool hushed (const char *username)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pw = getspnam (username);
|
pw = getpwnam (username);
|
||||||
if (NULL == pw) {
|
if (NULL == pw) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user