From e70621ea5b523cf48ba0b04629fed9355f6e536a Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Fri, 12 Nov 2021 14:26:41 +1100 Subject: [PATCH] don't add trailing / for root paths --- fuse_xattrs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuse_xattrs.c b/fuse_xattrs.c index 94126dc..335f1c2 100644 --- a/fuse_xattrs.c +++ b/fuse_xattrs.c @@ -206,8 +206,8 @@ const char *sanitized_source_directory(const char *path) { return NULL; // Path badness } - // Append "/" and allocate new memory for the string - return strdup( strcat( absolute_path, "/" ) ); + // Allocate new memory for the string + return strdup( absolute_path ); } enum { -- 2.39.2