diff --git a/sysutils/tree/Makefile b/sysutils/tree/Makefile index 1516c7ed834..4700ab3c717 100644 --- a/sysutils/tree/Makefile +++ b/sysutils/tree/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.4 2010/06/29 14:21:23 stsp Exp $ +# $OpenBSD: Makefile,v 1.5 2010/09/21 19:17:31 stsp Exp $ COMMENT= print ascii formatted tree of a directory structure DISTNAME= tree-0.61 -PKGNAME= ${DISTNAME}p1 +PKGNAME= ${DISTNAME}p2 CATEGORIES= sysutils HOMEPAGE= http://spootnik.org/tree/ diff --git a/sysutils/tree/patches/patch-tree_c b/sysutils/tree/patches/patch-tree_c new file mode 100644 index 00000000000..a6cc556ac2c --- /dev/null +++ b/sysutils/tree/patches/patch-tree_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-tree_c,v 1.1 2010/09/21 19:17:31 stsp Exp $ +--- tree.c.orig Wed Jun 21 20:47:54 2006 ++++ tree.c Mon Sep 20 19:59:40 2010 +@@ -139,7 +139,7 @@ format_entry(FTSENT *entry) + + if (entry->fts_info == FTS_SL) { + bzero(buf, MAXPATHLEN + 1); +- if (readlink(entry->fts_path, buf, MAXPATHLEN) == -1) ++ if (readlink(entry->fts_accpath, buf, MAXPATHLEN) == -1) + err(1, "readlink: %s", entry->fts_path); + sz += strlen(buf) + 5; + if ((str = realloc(str, sz)) == NULL)