From: nekral-guest Date: Tue, 21 Apr 2009 22:03:33 +0000 (+0000) Subject: Fix typo ( ) and fix a compilation warning (wrong const). X-Git-Tag: 4.1.4~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ba18ea4a90fc1502c56032a63729b08cd13cc80;p=shadow Fix typo ( ) and fix a compilation warning (wrong const). --- diff --git a/libmisc/hushed.c b/libmisc/hushed.c index 753a1441..c849ebfe 100644 --- a/libmisc/hushed.c +++ b/libmisc/hushed.c @@ -49,7 +49,7 @@ */ bool hushed (const char *username) { - const struct passwd *pw; + struct passwd *pw; char *hushfile; char buf[BUFSIZ]; bool found; @@ -65,7 +65,7 @@ bool hushed (const char *username) return false; } - pw = getspnam (username); + pw = getpwnam (username); if (NULL == pw) { return false; }