aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-06 15:03:19 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-06 18:07:59 +0200
commit268defa6efa18fc4b9a226c5d58f0e50ce2d0846 (patch)
tree64a8feff1c29ec8f004fb44a33bfb542634aee18 /include
parentc42e4fbbc6b175f843c4d0eeaaa9ead2d0e746b6 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h3
1 files changed, 0 insertions, 3 deletions
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 */