From: Ralph Ronnquist Date: Sun, 13 Aug 2023 01:53:22 +0000 (+1000) Subject: fix new -overlay bug X-Git-Tag: p-1.1.1^2 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=f1bd0ce70cdde903b79e1fb1ab2f895a674b5a6e;p=rrq%2Ffusefile.git fix new -overlay bug --- 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(); }