aboutsummaryrefslogtreecommitdiffstats
path: root/indep.c
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-15 00:32:13 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-15 00:32:13 +0000
commit85da7ee692072c643939e9f4b24fbd1e74e64e70 (patch)
tree9fc63298cf968fa560a9e3cf9b6c84516032fca8 /indep.c
parentUpdates from 0.2.1 into 0.2.1-inu-1.5 (diff)
downloadw3m-85da7ee692072c643939e9f4b24fbd1e74e64e70.tar.gz
w3m-85da7ee692072c643939e9f4b24fbd1e74e64e70.zip
Update to w3m-0.2.1-inu-1.6.
Diffstat (limited to '')
-rw-r--r--indep.c10
1 files changed, 5 insertions, 5 deletions
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 <stdio.h>
#include <pwd.h>
@@ -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);