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:
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
|
@ -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
|
||||
|
|
13
misc/fd/files/patch-libc.c
Normal file
13
misc/fd/files/patch-libc.c
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
13
shells/fd/files/patch-libc.c
Normal file
13
shells/fd/files/patch-libc.c
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue