aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-09-28 16:30:07 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-09-28 16:30:07 +0000
commitd4214f39a67ff2c931f661733fe35129b9818e2b (patch)
tree1643f41804ba7065d13411cae620ae8c296901b0 /etc.c
parent[w3m-dev 03321] Bug#162104: file descriptors 1 and 2 are closed rather than r... (diff)
downloadw3m-d4214f39a67ff2c931f661733fe35129b9818e2b.tar.gz
w3m-d4214f39a67ff2c931f661733fe35129b9818e2b.zip
Re: [w3m-dev 03320] Re: Passwords
* etc.c (dir_under): same path is ok * file.c (loadGeneralFile): if missing, return NULL ssl cert already checked * html.h (URLFILE): add ssl_certificate * istream.c (ssl_get_certificate): change args * istream.h (ssl_get_certificate): ditto * url.c (openSSLHandle): add p_cert ssl certificate check here (HTTPrequest): auth_cookie fix From: AIDA Shinra <aida-s@jcom.home.ne.jp>
Diffstat (limited to 'etc.c')
-rw-r--r--etc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc.c b/etc.c
index 0879c4b..a8c716d 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.24 2002/09/24 17:35:52 ukai Exp $ */
+/* $Id: etc.c,v 1.25 2002/09/28 16:30:07 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -854,6 +854,8 @@ static int
dir_under(const char *x, const char *y)
{
size_t len = strlen(x);
+ if (strcmp(x, y) == 0)
+ return 1;
return x[len - 1] == '/'
&& strlen(y) >= len
&& y[len - 1] == '/' && strncasecmp(x, y, len) == 0;