From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Greylist: delayed 311 seconds by postgrey-1.34 at layers.openembedded.org; Thu, 01 Aug 2019 16:22:13 UTC Received: from mail.seebs.net (mail.seebs.net [162.213.38.76]) by mail.openembedded.org (Postfix) with ESMTP id 8BCD07F4F4 for ; Thu, 1 Aug 2019 16:22:13 +0000 (UTC) Received: from seebsdell (unknown [24.196.59.174]) by mail.seebs.net (Postfix) with ESMTPSA id 4D4B62E890F; Thu, 1 Aug 2019 11:17:03 -0500 (CDT) Date: Thu, 1 Aug 2019 11:17:01 -0500 From: Seebs To: Max Kellermann Message-ID: <20190801111701.367588b2@seebsdell> In-Reply-To: <20190801160206.24078-1-max+openembedded@blarg.de> References: <20190801160206.24078-1-max+openembedded@blarg.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Cc: Max Kellermann , openembedded-core@lists.openembedded.org Subject: Re: [PATCH pseudo] ports/linux: wrap faccessat() X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2019 16:22:14 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 1 Aug 2019 18:02:06 +0200 Max Kellermann wrote: > + * wrap_access(int dirfd, const char *path, int mode, int flags) { This should probably say "faccessat". I know it's just a comment, but I try to be consistent about these. > + rc = real___fxstatat64(_STAT_VER, dirfd, path, &buf, AT_SYMLINK_NOFOLLOW); We should probably be using flags here, not AT_SYMLINK_NOFOLLOW. Or possibly (flags & AT_SYMLINK_NOFOLLOW). Otherwise, we'll get the wrong results if called with flags not including AT_SYMLINK_NOFOLLOW. -s