agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit 602b01162fa34d838c7e23b56b21feda18935f17
parent 589679c0ed66b976f3fa4dc42f1e05451413821a
Author: Marc Coquand <marc@coquand.email>
Date:   Tue, 29 Jul 2025 10:19:05 +0200

fix: Maxsizes

Diffstat:
Mmain.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
@@ -413,11 +413,11 @@ fuse_setxattr(const char *path, const char *attribute, const char *value,
 	int status = 0;
 
 	// Limit imposed in xattr(7)
-	if (strlen(attribute) < 256) {
+	if (strlen(attribute) >= 256) {
 		status = -EMSGSIZE;
 	}
 
-	if (strlen(value) < 64 * 1024) {
+	if (strlen(value) >= 64 * 1024) {
 		status = -EMSGSIZE;
 	}
 	struct tree_node *node = get_node_by_path(mreg, path);