From f1bd0ce70cdde903b79e1fb1ab2f895a674b5a6e Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sun, 13 Aug 2023 11:53:22 +1000 Subject: [PATCH] fix new -overlay bug --- fusefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fusefile.c b/fusefile.c index 62431d2..ab97ff7 100644 --- a/fusefile.c +++ b/fusefile.c @@ -1086,10 +1086,10 @@ int main(int argc, char *argv[]) } fuseargc = i; mnt = argv[ i++ ]; // First non-option argument is the mount pount - if ( strcmp( argv[i], "-overlay:" ) == 0 ) { + #define OVERLAYTAG "-overlay:" + if ( strncmp( argv[i], OVERLAYTAG, strlen( OVERLAYTAG ) ) == 0 ) { // consume "-overlay:filename[,filename]*" - // Verify file access; to overlay must be writable. - overlay_setup( argv[i++] + strlen( "-overlay:" ) ); + overlay_setup( argv[i++] + strlen( OVERLAYTAG ) ); if ( i >= argc ) { usage(); } -- 2.39.2