agendafs
A filesystem for your calendar.
git clone git://mccd.space/agendafscommit 0c64b6aed0d151d8c1989ef265d19e9f8b226dc1
parent 363585da02064aa300cb605667cdc287b6537306
Author: Marc Coquand <marc@coquand.email>
Date: Fri, 1 Aug 2025 11:54:04 +0200
Send to cleanup return
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/main.c b/main.c
@@ -399,10 +399,12 @@ fuse_setxattr(const char *path, const char *attribute, const char *value,
// Limit imposed in xattr(7)
if (strlen(attribute) >= 256) {
status = -EMSGSIZE;
+ goto cleanup_return;
}
if (strlen(value) >= 64 * 1024) {
status = -EMSGSIZE;
+ goto cleanup_return;
}
struct tree_node *node = get_node_by_path(mreg, path);
if (!node) {