Re: [hackers] [PATCH 2/2] scripts: Fix non-portable find -perm /mode

From: Randy Palamar <palamar_AT_ualberta.ca>
Date: Sun, 29 Oct 2023 08:48:31 -0600

> Not exactly, -perm -111 matches if at least the mode has executable bit
> for all (could be 751 for example),
> while GNU -perm /111 matches if any bit is set (could be 500).

Thanks for the info, I didn't really check the GNU manpage.

> I guess that the original intent of the code here
> was to to find any executable file.

I concur. It seems to me that the default output mode for `cc` is 755
even if the parent directory has more restrictive permissions. So the
more concise -perm -111 should suffice. I will leave the decision up
to Roberto though.
Received on Sun Oct 29 2023 - 15:48:31 CET

This archive was generated by hypermail 2.3.0 : Sun Oct 29 2023 - 22:48:34 CET