diff --git a/src/rofiles-fuse/main.c b/src/rofiles-fuse/main.c index 4337f00f..3c910f1f 100644 --- a/src/rofiles-fuse/main.c +++ b/src/rofiles-fuse/main.c @@ -46,7 +46,10 @@ static GHashTable *created_devino_hash = NULL; static inline const char * ENSURE_RELPATH (const char *path) { - return path + strspn (path, "/"); + path = path + strspn (path, "/"); + if (*path == 0) + return "."; + return path; } typedef struct {