[w3m-dev 03311] Re: Passwords

* configure (config.h): default PASSWD_FILE
* fm.h (passwd_file): default PASSWD_FILE
From: Yuuichi Teranishi <teranisi@gohome.org>
This commit is contained in:
Fumitoshi UKAI
2002-09-11 15:08:49 +00:00
parent 4176436cc4
commit 87442b63f4
3 changed files with 11 additions and 2 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
2002-09-11 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03312] Re: Passwords
* config.h.dist: PASSWD_FILE
* file.c (find_auth_user_passwd): return if passwd_file == NULL
2002-09-11 Yuuichi Teranishi <teranisi@gohome.org>
* [w3m-dev 03311] Re: Passwords
@@ -3781,4 +3787,4 @@
* release-0-2-1
* import w3m-0.2.1
$Id: ChangeLog,v 1.426 2002/09/11 14:54:33 ukai Exp $
$Id: ChangeLog,v 1.427 2002/09/11 15:08:49 ukai Exp $
+1
View File
@@ -167,6 +167,7 @@ MODEL=Linux.i686-monster-ja
#define COOKIE_FILE "cookie"
#define HISTORY_FILE "history"
#define PASSWD_FILE RC_DIR "/passwd"
#define USER_MAILCAP RC_DIR "/mailcap"
#define SYS_MAILCAP "/etc/mailcap"
#define USER_MIMETYPES "~/.mime.types"
+3 -1
View File
@@ -1,4 +1,4 @@
/* $Id: file.c,v 1.99 2002/09/10 18:21:36 ukai Exp $ */
/* $Id: file.c,v 1.100 2002/09/11 15:08:54 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1363,6 +1363,8 @@ find_auth_user_passwd(char *host, int port, char *file, char *realm,
*uname = NULL;
*pwd = NULL;
if (passwd_file == NULL)
return 0;
if (stat(expandName(passwd_file), &st) < 0)
return 0;