|
From: | Keno Fischer |
Subject: | Re: [Qemu-devel] [PATCH 07/13] 9p: darwin: Properly translate AT_REMOVEDIR flag |
Date: | Thu, 31 May 2018 12:25:49 -0400 |
>> + errno = EINVAL; >> + return -1; > > ... I'm more concerned about this new error path. How can this happen ? > As far as I can tell, the flags come from the client without any intermediate error checking. Since the Darwin constants do not match the Linux constants (which have the same numerical values as the 9p constants), we need to perform this checking/translation somewhere to ensure correct behavior. Is there a more appropriate place to put this check?
[Prev in Thread] | Current Thread | [Next in Thread] |