projects
/
rrq
/
fusefile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into preview
[rrq/fusefile.git]
/
fusefile.c
diff --git
a/fusefile.c
b/fusefile.c
index 62431d28a6894ba2973388ee7999971bb0bb2e2e..ab97ff7f0f50c8902066075c2df1951f5c9fdb31 100644
(file)
--- 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
}
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]*"
// 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();
}
if ( i >= argc ) {
usage();
}