agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit 72f1c2f13cbe0f1837c6626ce981bc2dee6025e1
parent bccab1f986f9a89c375483af17c2bfeff7698a02
Author: Marc Coquand <marc@coquand.email>
Date:   Fri, 15 Aug 2025 13:28:38 +0200

Add check for unknown files

Diffstat:
Mfuse_node.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fuse_node.c b/fuse_node.c
@@ -269,6 +269,10 @@ load_root_node_tree()
 
 	struct dirent *entry;
 	while ((entry = readdir(dir))) {
+		if (entry->d_type == DT_UNKNOWN) {
+			printf("Unsupported file type for '%s'. Skipping\n",
+			       entry->d_name);
+		}
 		if (entry->d_type == DT_REG && strstr(entry->d_name, ".ics")) {
 			LOG("Loading %s", entry->d_name);
 			struct agenda_entry *new_entry =
@@ -306,7 +310,6 @@ load_root_node_tree()
 			struct tree_node *parent =
 			    get_node_by_uuid(mreg, parent_uid);
 			if (parent) {
-
 				icalcomponent *pic =
 				    get_icalcomponent_from_node(mreg, parent);
 				if (!is_directory_component(pic)) {