Update to w3m-0.2.1-inu-1.6.

This commit is contained in:
Akinori Ito
2001-11-15 00:32:13 +00:00
parent 6c63633545
commit 85da7ee692
82 changed files with 10900 additions and 217 deletions

10
indep.c
View File

@@ -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);