* libmisc/obscure.c, libmisc/salt.c, src/passwd.c: Match DES, MD5,

SHA256, and SHA512 exactly (not only the first 3/6 chars).
* libmisc/salt.c (SHA_salt_rounds): Set rounds to the specified
  prefered_rounds value, if specified.
* src/gpasswd.c, libmisc/salt.c: Fix compilation warnings (use
  size_t for lengths).
* src/chpasswd.c, src/chgpasswd.c: Add missing parenthesis.
This commit is contained in:
nekral-guest
2007-11-20 20:00:16 +00:00
parent 1d4b67c773
commit 9aa40bb96d
8 changed files with 49 additions and 14 deletions

View File

@@ -121,7 +121,7 @@ static int check_list (const char *users)
const char *start, *end;
char username[32];
int errors = 0;
int len;
size_t len;
for (start = users; start && *start; start = end) {
if ((end = strchr (start, ','))) {