Subject: [netatalk-admins] Compiling poppassd under RedHat 4.2/5.0
From: Carl Beaudry (cbeaudry@usra.edu)
Date: Wed Jan 28 1998 - 15:25:23 EST
Has anyone here successfully compiled poppassd under either of the last
two Redhat releases (either with or without shadow passwords.)
I'm still getting the following error:
poppassd.c: In function `chkPass':
poppassd.c:803: warning: passing arg 1 of `strcmp' makes
pointer from integer without a cast
cc -o poppassd poppassd.o
poppassd.o: In function `chkPass':
poppassd.o(.text+0xa1b): undefined reference to `crypt'
make: *** [poppassd] Error 1
which seems to be coming from the following function:
int chkPass (char *user, char *pass, struct passwd *pw)
{
/* Compare the supplied password with the password file entry
*/
if (strcmp (crypt (pass, pw->pw_passwd), pw->pw_passwd) != 0)
return (FAILURE);
else
return (SUCCESS);
}
Now it looks to me like strcmp is retuning an integer, which is as it
should be. Am I missing something obvious here?
--Carl
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:30:36 EST