Fix handling of symlinks in subdirectories; ok pyr@
This commit is contained in:
parent
57499a7fb6
commit
faeb10fc82
@ -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/
|
||||
|
12
sysutils/tree/patches/patch-tree_c
Normal file
12
sysutils/tree/patches/patch-tree_c
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user