diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 18:58:00 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 18:58:00 +0000 |
commit | 6001e35a3fe4dfa41d0296227ea68adb86e288b3 (patch) | |
tree | c8d8034972b6a4940578ae0c3d1d31e10a713bdb /src | |
parent | f5dc8da946802ffc856cfe7d77b6155ffc23b753 (diff) | |
download | krb5-6001e35a3fe4dfa41d0296227ea68adb86e288b3.tar.gz krb5-6001e35a3fe4dfa41d0296227ea68adb86e288b3.tar.xz krb5-6001e35a3fe4dfa41d0296227ea68adb86e288b3.zip |
* server_misc.c (passwd_check): cast argument to
islower()/isupper(), isdigit(), ispunct() to int.
* server_acl.c (acl_parse_line): Cast argument to
isupper()/isspace() to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13371 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/kadm5/srv/ChangeLog | 8 | ||||
-rw-r--r-- | src/lib/kadm5/srv/server_acl.c | 4 | ||||
-rw-r--r-- | src/lib/kadm5/srv/server_misc.c | 8 |
3 files changed, 14 insertions, 6 deletions
diff --git a/src/lib/kadm5/srv/ChangeLog b/src/lib/kadm5/srv/ChangeLog index 9c87ae5fcb..a00855be13 100644 --- a/src/lib/kadm5/srv/ChangeLog +++ b/src/lib/kadm5/srv/ChangeLog @@ -1,3 +1,11 @@ +2001-06-18 Ezra Peisach <epeisach@mit.edu> + + * server_misc.c (passwd_check): cast argument to + islower()/isupper(), isdigit(), ispunct() to int. + + * server_acl.c (acl_parse_line): Cast argument to + isupper()/isspace() to int. + 2001-06-08 Ezra Peisach <epeisach@mit.edu> * svr_principal.c (check_pw_reuse): Cleanup assignment in conditional. diff --git a/src/lib/kadm5/srv/server_acl.c b/src/lib/kadm5/srv/server_acl.c index 0ecc4cc520..e114bfc865 100644 --- a/src/lib/kadm5/srv/server_acl.c +++ b/src/lib/kadm5/srv/server_acl.c @@ -197,7 +197,7 @@ acl_parse_line(lp) for (op=acle_ops; *op; op++) { char rop; - rop = (isupper(*op)) ? tolower(*op) : *op; + rop = (isupper((int) *op)) ? tolower((int) *op) : *op; found = 0; for (t=0; acl_op_table[t].ao_op; t++) { if (rop == acl_op_table[t].ao_op) { @@ -240,7 +240,7 @@ acl_parse_line(lp) char *trailing; trailing = &acle_restrictions[strlen(acle_restrictions)-1]; - while ( isspace(*trailing) ) + while ( isspace((int) *trailing) ) trailing--; trailing[1] = '\0'; acle->ae_restriction_string = strdup(acle_restrictions); diff --git a/src/lib/kadm5/srv/server_misc.c b/src/lib/kadm5/srv/server_misc.c index fac47bb2f6..02c7dced69 100644 --- a/src/lib/kadm5/srv/server_misc.c +++ b/src/lib/kadm5/srv/server_misc.c @@ -139,17 +139,17 @@ passwd_check(kadm5_server_handle_t handle, return KADM5_PASS_Q_TOOSHORT; s = password; while ((c = *s++)) { - if (islower(c)) { + if (islower((int) c)) { nlower = 1; continue; } - else if (isupper(c)) { + else if (isupper((int) c)) { nupper = 1; continue; - } else if (isdigit(c)) { + } else if (isdigit((int) c)) { ndigit = 1; continue; - } else if (ispunct(c)) { + } else if (ispunct((int) c)) { npunct = 1; continue; } else { |