Re: [Qemu-devel] [PATCH v4 2/3] 9pfs: forbid . and .. in file names

2016-08-30 Thread Greg Kurz
On Tue, 30 Aug 2016 13:06:31 -0500 Eric Blake wrote: > On 08/30/2016 12:13 PM, Greg Kurz wrote: > > According to the 9P spec http://man.cat-v.org/plan_9/5/open about the > > create request: > > > > The names . and .. are special; it is illegal to create files with these > > names. > > > > This

Re: [Qemu-devel] [PATCH v4 2/3] 9pfs: forbid . and .. in file names

2016-08-30 Thread Eric Blake
On 08/30/2016 12:13 PM, Greg Kurz wrote: > According to the 9P spec http://man.cat-v.org/plan_9/5/open about the > create request: > > The names . and .. are special; it is illegal to create files with these > names. > > This patch causes the create and lcreate requests to fail with EINVAL if > t

[Qemu-devel] [PATCH v4 2/3] 9pfs: forbid . and .. in file names

2016-08-30 Thread Greg Kurz
According to the 9P spec http://man.cat-v.org/plan_9/5/open about the create request: The names . and .. are special; it is illegal to create files with these names. This patch causes the create and lcreate requests to fail with EINVAL if the file name is either "." or "..". Even if it isn't exp