From: Ralph Ronnquist Date: Fri, 12 Nov 2021 03:26:41 +0000 (+1100) Subject: don't add trailing / for root paths X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=e70621ea5b523cf48ba0b04629fed9355f6e536a;p=rrq%2Ffuse_xattrs.git don't add trailing / for root paths --- 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 {