mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
fuse_opt: implementation checkpoint
This commit is contained in:
parent
9e068049b3
commit
c851e9c98e
@ -399,6 +399,16 @@ FSP_FUSE_API int fsp_fuse_opt_parse(struct fuse_args *args, void *data,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* if "--" is the last argument, remove it (fuse_opt compatibility) */
|
||||
if (0 < outargs.argc &&
|
||||
'-' == outargs.argv[outargs.argc - 1][0] &&
|
||||
'-' == outargs.argv[outargs.argc - 1][1] &&
|
||||
'\0' == outargs.argv[outargs.argc - 1][2])
|
||||
{
|
||||
memfree(outargs.argv[--outargs.argc]);
|
||||
outargs.argv[outargs.argc] = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
Loading…
x
Reference in New Issue
Block a user