Re: [Qemu-devel] [PATCH v2 09/20] 9p: Properly check/translate flags in unlinkat

2018-06-01 Thread Greg Kurz
On Thu, 31 May 2018 21:26:04 -0400 Keno Fischer wrote: > This code previously relied on P9_DOTL_AT_REMOVEDIR and AT_REMOVEDIR > having the same numerical value and deferred any errorchecking to the > syscall itself. However, while the former assumption is true on Linux, > it is not true in

[Qemu-devel] [PATCH v2 09/20] 9p: Properly check/translate flags in unlinkat

2018-05-31 Thread Keno Fischer
This code previously relied on P9_DOTL_AT_REMOVEDIR and AT_REMOVEDIR having the same numerical value and deferred any errorchecking to the syscall itself. However, while the former assumption is true on Linux, it is not true in general. Thus, add appropriate error checking and translation to the