From: Christian Weisgerber Subject: Re: Packfile permissions To: Sebastien Marie Cc: gameoftrees@openbsd.org Date: Wed, 28 Oct 2020 23:28:26 +0100 Sebastien Marie: > Per habit, I am not really fan of chmod(2) usage, specially when it is > as simple to use fchmod(2) (we opened the files for writing just > before). You beat me to it... > The diff below should be equivalent in result. It uses fchmod(2) just > after opening the file. ok naddy@ -- Christian "naddy" Weisgerber naddy@mips.inka.de