libfuse: null-terminate argv (fuse_opt_insert_arg)

2016-05-19 Thread Hiltjo Posthuma
Hi peoples, This diff makes sure to NUL-terminate argv when parsing options in libfuse. The upstream/other libfuse does it this way. This fixes an issue with the sysutils/sshfs port, it uses execvp(3) on the fuse_args argv and this gave an error "bad address". Index: fuse_opt.c =

Re: libfuse: null-terminate argv (fuse_opt_insert_arg)

2016-05-20 Thread Ray Lai
On Thu, 19 May 2016 18:57:50 +0200 Hiltjo Posthuma wrote: > Hi peoples, > > This diff makes sure to NUL-terminate argv when parsing options in libfuse. > The upstream/other libfuse does it this way. This fixes an issue with the > sysutils/sshfs port, it uses execvp(3) on the fuse_args argv and t

Re: libfuse: null-terminate argv (fuse_opt_insert_arg)

2016-05-23 Thread Hiltjo Posthuma
On Fri, May 20, 2016 at 10:57:10PM +0800, Ray Lai wrote: > On Thu, 19 May 2016 18:57:50 +0200 > Hiltjo Posthuma wrote: > > > Hi peoples, > > > > This diff makes sure to NUL-terminate argv when parsing options in libfuse. > > The upstream/other libfuse does it this way. This fixes an issue with t