From 85da7ee692072c643939e9f4b24fbd1e74e64e70 Mon Sep 17 00:00:00 2001 From: Akinori Ito Date: Thu, 15 Nov 2001 00:32:13 +0000 Subject: Update to w3m-0.2.1-inu-1.6. --- indep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'indep.c') diff --git a/indep.c b/indep.c index 159856e..b4cdc46 100644 --- a/indep.c +++ b/indep.c @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.2 2001/11/09 04:59:17 a-ito Exp $ */ +/* $Id: indep.c,v 1.3 2001/11/15 00:32:13 a-ito Exp $ */ #include "fm.h" #include #include @@ -75,14 +75,14 @@ currentdir() } char * -cleanupName2(char *name, int flag) +cleanupName(char *name) { char *buf, *p, *q; buf = allocStr(name, 0); p = buf; q = name; - while (*q != '\0' && (*q != '?' || ! flag)) { + while (*q != '\0') { if (strncmp(p, "/../", 4) == 0) { /* foo/bar/../FOO */ if (p - 2 == buf && strncmp(p - 2, "..", 2) == 0) { /* ../../ */ @@ -125,13 +125,13 @@ cleanupName2(char *name, int flag) } else if (strncmp(p, "//", 2) == 0) { /* foo//bar */ /* -> foo/bar */ -#ifdef __CYGWIN__ +#if 0 /* ifdef SUPPORT_NETBIOS_SHARE */ if (p == buf) { /* //DRIVE/foo or //host/path */ p += 2; q += 2; continue; } -#endif /* __CYGWIN__ */ +#endif /* SUPPORT_NETBIOS_SHARE */ *p = '\0'; q++; strcat(buf, q); -- cgit v1.2.3