Re: [RFC 1/1] tools/virtiofsd: create temporary directory in /tmp

2020-10-06 Thread Stefan Hajnoczi
On Thu, Oct 01, 2020 at 08:15:19AM +0200, Jens Freimann wrote: > mkdtemp() will try to create a current directory in the working > directory of the process. In this case it's trying to create it in /. > This is a problem when the process doesn't have write access there. > > This patch changes the

[RFC 1/1] tools/virtiofsd: create temporary directory in /tmp

2020-09-30 Thread Jens Freimann
mkdtemp() will try to create a current directory in the working directory of the process. In this case it's trying to create it in /. This is a problem when the process doesn't have write access there. This patch changes the template string and prepends "/tmp" which is typically writable. Signed-