1
1

* mcserv.c: Declare crypt if crypt.h is missing and we are not

using PAM.
Этот коммит содержится в:
Pavel Roskin 2002-09-12 22:24:09 +00:00
родитель a6d9b40969
Коммит 30cc264176
2 изменённых файлов: 14 добавлений и 10 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2002-09-12 Pavel Roskin <proski@gnu.org>
* mcserv.c: Declare crypt if crypt.h is missing and we are not
using PAM.
2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua> 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
* smbfs.c (statfile_helper): Merge with loaddir_helper(). * smbfs.c (statfile_helper): Merge with loaddir_helper().

Просмотреть файл

@ -51,9 +51,6 @@
#ifdef HAVE_GRP_H #ifdef HAVE_GRP_H
# include <grp.h> # include <grp.h>
#endif #endif
#ifdef HAVE_CRYPT_H
# include <crypt.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
@ -82,7 +79,13 @@
# ifndef PAM_ESTABLISH_CRED # ifndef PAM_ESTABLISH_CRED
# define PAM_ESTABLISH_CRED PAM_CRED_ESTABLISH # define PAM_ESTABLISH_CRED PAM_CRED_ESTABLISH
# endif # endif
#endif #else
#ifdef HAVE_CRYPT_H
# include <crypt.h>
#else
extern char *crypt (const char *, const char *);
#endif /* !HAVE_CRYPT_H */
#endif /* !HAVE_PAM */
#include "utilvfs.h" #include "utilvfs.h"
@ -815,10 +818,6 @@ static int do_ftp_auth (char *username, char *password)
return 0; return 0;
} }
#ifdef NEED_CRYPT_PROTOTYPE
extern char *crypt (const char *, const char *);
#endif
static int do_classic_auth (char *username, char *password) static int do_classic_auth (char *username, char *password)
{ {
struct passwd *this; struct passwd *this;