* mcserv.c: Declare crypt if crypt.h is missing and we are not
using PAM.
Этот коммит содержится в:
родитель
a6d9b40969
Коммит
30cc264176
@ -1,10 +1,15 @@
|
||||
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>
|
||||
|
||||
* smbfs.c (statfile_helper): Merge with loaddir_helper().
|
||||
(get_remote_stat): Use loaddir_helper(). Care about
|
||||
(get_remote_stat): Use loaddir_helper(). Care about
|
||||
single_entry instead of eliminated statfile_helper().
|
||||
|
||||
* samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
|
||||
* samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
|
||||
parameter to (*fn)() and void *state parameter.
|
||||
(cli_list): Likewise.
|
||||
(cli_RNetShareEnum): Likewise. Return int.
|
||||
|
15
vfs/mcserv.c
15
vfs/mcserv.c
@ -51,9 +51,6 @@
|
||||
#ifdef HAVE_GRP_H
|
||||
# include <grp.h>
|
||||
#endif
|
||||
#ifdef HAVE_CRYPT_H
|
||||
# include <crypt.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
@ -82,7 +79,13 @@
|
||||
# ifndef PAM_ESTABLISH_CRED
|
||||
# define PAM_ESTABLISH_CRED PAM_CRED_ESTABLISH
|
||||
# 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"
|
||||
|
||||
@ -815,10 +818,6 @@ static int do_ftp_auth (char *username, char *password)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NEED_CRYPT_PROTOTYPE
|
||||
extern char *crypt (const char *, const char *);
|
||||
#endif
|
||||
|
||||
static int do_classic_auth (char *username, char *password)
|
||||
{
|
||||
struct passwd *this;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user