aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libfetchers/input-accessor.hh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libfetchers/input-accessor.hh b/src/libfetchers/input-accessor.hh
index 23c510d4d..1cb233c51 100644
--- a/src/libfetchers/input-accessor.hh
+++ b/src/libfetchers/input-accessor.hh
@@ -13,7 +13,17 @@ class Store;
struct InputAccessor
{
- enum Type { tRegular, tSymlink, tDirectory, tMisc };
+ enum Type {
+ tRegular, tSymlink, tDirectory,
+ /**
+ Any other node types that may be encountered on the file system, such as device nodes, sockets, named pipe, and possibly even more exotic things.
+
+ Responsible for `"unknown"` from `builtins.readFileType "/dev/null"`.
+
+ Unlike `DT_UNKNOWN`, this must not be used for deferring the lookup of types.
+ */
+ tMisc
+ };
struct Stat
{