]> granicus.if.org Git - shadow/commitdiff
Fix typo ( ) and fix a compilation warning (wrong const).
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 21 Apr 2009 22:03:33 +0000 (22:03 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 21 Apr 2009 22:03:33 +0000 (22:03 +0000)
libmisc/hushed.c

index 753a14410df3430d2a423142601c64eeffbfe70a..c849ebfea011c3e525ab8a4fd3a0ec7a95e49e43 100644 (file)
@@ -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;
        }