summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs/walk.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-02-20 19:32:31 +0000
committerbrooks <brooks@FreeBSD.org>2013-02-20 19:32:31 +0000
commit518d1fe89bb5998f5c172f5f2cb6c169a6bfb31c (patch)
treed240191ba576148f727d724e020192045e876e8f /usr.sbin/makefs/walk.c
parent4778623d426b579d28de62ccf6bd1e9aeba0c58f (diff)
downloadFreeBSD-src-518d1fe89bb5998f5c172f5f2cb6c169a6bfb31c.zip
FreeBSD-src-518d1fe89bb5998f5c172f5f2cb6c169a6bfb31c.tar.gz
Support hardlinks in manifest files by the same logic as the treewalk
code. Reviewed by: marcel Sponsored by: DARPA, AFRL
Diffstat (limited to 'usr.sbin/makefs/walk.c')
-rw-r--r--usr.sbin/makefs/walk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/makefs/walk.c b/usr.sbin/makefs/walk.c
index 0664c84..7af92bb 100644
--- a/usr.sbin/makefs/walk.c
+++ b/usr.sbin/makefs/walk.c
@@ -59,7 +59,6 @@ static void apply_specdir(const char *, NODE *, fsnode *, int);
static void apply_specentry(const char *, NODE *, fsnode *);
static fsnode *create_fsnode(const char *, const char *, const char *,
struct stat *);
-static fsinode *link_check(fsinode *);
/*
@@ -644,7 +643,7 @@ inode_type(mode_t mode)
/* This was borrowed from du.c and tweaked to keep an fsnode
* pointer instead. -- dbj@netbsd.org
*/
-static fsinode *
+fsinode *
link_check(fsinode *entry)
{
static struct entry {
OpenPOWER on IntegriCloud