From 268defa6efa18fc4b9a226c5d58f0e50ce2d0846 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 6 Apr 2023 15:03:19 +0200 Subject: libfstree: simplify hard link resolution code We do not allow hard links to directories, so we can toss the special case handling code for that. The visited mechanism was pointless anyway, because we don't even descend down hard links in the recursive tree handling functions. Signed-off-by: David Oberhollenzer --- include/fstree.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/fstree.h b/include/fstree.h index 430574d..ef6dd4b 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -53,9 +53,6 @@ struct dir_info_t { /* Set to true for implicitly generated directories. */ bool created_implicitly; - - /* Used by recursive tree walking code to avoid hard link loops */ - bool visited; }; /* A node in a file system tree */ -- cgit v1.2.3