Purpose of commit: bugfix
Commit summary:
---------------
2007-08-29 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_rhosts/pam_rhosts_auth.c: buflen needs to be size_t.
(__icheckhost): Cast to int32_t to fix limited range error.
* modules/pam_cracklib/pam_cracklib.c: Mark cracklib_dictpath
as const.
+2007-08-29 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * modules/pam_rhosts/pam_rhosts_auth.c: buflen needs to be size_t.
+ (__icheckhost): Cast to int32_t to fix limited range error.
+
+ * modules/pam_cracklib/pam_cracklib.c: Mark cracklib_dictpath
+ as const.
+
2007-08-29 Steve Langasek <vorlon@debian.org>
* modules/pam_rhosts/pam_rhosts_auth.c: getline returns -1 at
int min_class;
int use_authtok;
char prompt_type[BUFSIZ];
- char *cracklib_dictpath;
+ const char *cracklib_dictpath;
};
#define CO_RETRY_TIMES 1
/* Try for raw ip address first. */
- if (isdigit(*lhost) && (long)(laddr = inet_addr(lhost)) != -1)
+ if (isdigit(*lhost) && (int32_t)(laddr = inet_addr(lhost) != -1))
return (negate*(! (raddr ^ laddr)));
/* Better be a hostname. */
int retval = 1;
#ifdef HAVE_GETLINE
char *buf=NULL;
- int buflen=0;
+ size_t buflen=0;
while (getline(&buf,&buflen,hostf) > 0) {
#else