X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=fusefile.c;h=ab97ff7f0f50c8902066075c2df1951f5c9fdb31;hb=67d08c521596cd2b006f5df3b6e633f030cc18fc;hp=62431d28a6894ba2973388ee7999971bb0bb2e2e;hpb=f46816d1356171d1e9b00db4e151ff5230fbe55d;p=rrq%2Ffusefile.git 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(); }