diff options
-rw-r--r-- | misc/fd/Makefile | 2 | ||||
-rw-r--r-- | misc/fd/files/patch-libc.c | 13 | ||||
-rw-r--r-- | shells/fd/Makefile | 2 | ||||
-rw-r--r-- | shells/fd/files/patch-libc.c | 13 |
4 files changed, 28 insertions, 2 deletions
diff --git a/misc/fd/Makefile b/misc/fd/Makefile index 7149595ad02d..0b9dd5ea8754 100644 --- a/misc/fd/Makefile +++ b/misc/fd/Makefile @@ -7,10 +7,10 @@ PORTNAME= fd PORTVERSION= 1.03u +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/ \ ftp://ftp.vector.co.jp/pack/unix/util/file/filer/fd/ -MASTER_SITE_SUBDIR= steve DISTNAME= FD-${PORTVERSION} MAINTAINER= nobu@psrc.isac.co.jp diff --git a/misc/fd/files/patch-libc.c b/misc/fd/files/patch-libc.c new file mode 100644 index 000000000000..79c7e0ac01b2 --- /dev/null +++ b/misc/fd/files/patch-libc.c @@ -0,0 +1,13 @@ +diff -u ../old/FD-1.03u/libc.c ./libc.c +--- ../old/FD-1.03u/libc.c Tue Dec 18 00:00:00 2001 ++++ ./libc.c Tue Jan 8 12:06:14 2002 +@@ -165,7 +165,8 @@ + buf[i] = '\0'; + if (*buf == _SC_) strcpy(resolved, buf); + else { +- *(cp - 1) = '\0'; ++ if (cp - 1 > resolved) cp--; ++ *cp = '\0'; + _realpath2(buf, resolved, rdlink); + } + } diff --git a/shells/fd/Makefile b/shells/fd/Makefile index 7149595ad02d..0b9dd5ea8754 100644 --- a/shells/fd/Makefile +++ b/shells/fd/Makefile @@ -7,10 +7,10 @@ PORTNAME= fd PORTVERSION= 1.03u +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/ \ ftp://ftp.vector.co.jp/pack/unix/util/file/filer/fd/ -MASTER_SITE_SUBDIR= steve DISTNAME= FD-${PORTVERSION} MAINTAINER= nobu@psrc.isac.co.jp diff --git a/shells/fd/files/patch-libc.c b/shells/fd/files/patch-libc.c new file mode 100644 index 000000000000..79c7e0ac01b2 --- /dev/null +++ b/shells/fd/files/patch-libc.c @@ -0,0 +1,13 @@ +diff -u ../old/FD-1.03u/libc.c ./libc.c +--- ../old/FD-1.03u/libc.c Tue Dec 18 00:00:00 2001 ++++ ./libc.c Tue Jan 8 12:06:14 2002 +@@ -165,7 +165,8 @@ + buf[i] = '\0'; + if (*buf == _SC_) strcpy(resolved, buf); + else { +- *(cp - 1) = '\0'; ++ if (cp - 1 > resolved) cp--; ++ *cp = '\0'; + _realpath2(buf, resolved, rdlink); + } + } |