Add a patch submitted by the author which fixes a bug I reported where

fd fails to expand a relative symlink in the root directory.

Bump PORTREVISION accordingly.

Remove an unneeded MASTER_SITE_SUBDIR line.
This commit is contained in:
Akinori MUSHA 2002-01-19 11:43:30 +00:00
parent 1d1a229ed3
commit c45b04d7f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53335
4 changed files with 28 additions and 2 deletions

View file

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

View file

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

View file

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

View file

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