aboutsummaryrefslogtreecommitdiff
path: root/shells/fd
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-01-19 11:43:30 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-01-19 11:43:30 +0000
commitc45b04d7f04e9942264b289ff04ddf7f4a903838 (patch)
tree0c1879afabc0642d38d866655df33aa344beceba /shells/fd
parent1d1a229ed37b47912edcd4eeafcb700aafa583fa (diff)
downloadports-c45b04d7f04e9942264b289ff04ddf7f4a903838.tar.gz
ports-c45b04d7f04e9942264b289ff04ddf7f4a903838.zip
Notes
Diffstat (limited to 'shells/fd')
-rw-r--r--shells/fd/Makefile2
-rw-r--r--shells/fd/files/patch-libc.c13
2 files changed, 14 insertions, 1 deletions
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);
+ }
+ }