From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 7F6A76DE0205 for ; Wed, 10 Jan 2018 10:30:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OAa59vJVI3Vf for ; Wed, 10 Jan 2018 10:30:02 -0800 (PST) Received: from ulminfo.fr (ulminfo.fr [5.135.188.139]) by arlo.cworth.org (Postfix) with ESMTPS id 483796DE01EB for ; Wed, 10 Jan 2018 10:30:02 -0800 (PST) Received: from zeta (AOrleans-651-1-56-174.w90-20.abo.wanadoo.fr [90.20.191.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ulminfo.fr (Postfix) with ESMTPSA id B8F60C1209; Wed, 10 Jan 2018 19:29:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=a3nm.net; s=default; t=1515608999; bh=0PDlHrfthSC6wLk6YXQjX9Xy01kJgctfWUYm5RHMnJU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=2+nwIy49NfsRSJb0ZMlSs3OEu7fxWuM3IDoLxgf8KFvnztWsHPTIC3D7Ele7Fz0B/ eCQt9/77shlxNnikL7dE89rRsO5HtFBFTLKnkw0jfgOf4YngNSG892ngE1MZaExL0/ p2VCrkoeVQo7LpM7ewfVlhIHVnURB7OwXfSA4GDU= Date: Wed, 10 Jan 2018 19:29:59 +0100 From: Antoine Amarilli To: notmuch@notmuchmail.org Subject: Re: Bug?: manpages are only readable by root when doing sudo make install with umask 077 Message-ID: <20180110182959.nci4wukse5y4yvot@zeta> References: <20180110153814.s3ptgetykmruivac@zeta> <87tvvt3cpk.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dxzglnmjkmoztgqa" Content-Disposition: inline In-Reply-To: <87tvvt3cpk.fsf@fifthhorseman.net> User-Agent: NeoMutt/20171215 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 18:30:03 -0000 --dxzglnmjkmoztgqa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Daniel, Thanks for your reply! On Wed, Jan 10, 2018 at 11:23:03AM -0500, Daniel Kahn Gillmor wrote: > On Wed 2018-01-10 16:38:14 +0100, Antoine Amarilli wrote: > how is the installation happening for you? In Makefile.local, i see: >=20 > install -m0644 $(filter %.1.gz,$(MAN_GZIP_FILES)) $(DESTDIR)/$(mandir)/m= an1 > install -m0644 $(filter %.5.gz,$(MAN_GZIP_FILES)) $(DESTDIR)/$(mandir)/m= an5 > install -m0644 $(filter %.7.gz,$(MAN_GZIP_FILES)) $(DESTDIR)/$(mandir)/m= an7 >=20 > which suggests that the -m would override the umask. That's right. Looking more closely I think the issue is only with the permissions of the directories /usr/local/share/man/man*, not the files that they contain. Of course this is still an obstacle for the manpages to be readable. So I guess the following in doc/Makefile.local (just above what you quoted): =20 mkdir -p "$(DESTDIR)$(mandir)/man1" mkdir -p "$(DESTDIR)$(mandir)/man5" mkdir -p "$(DESTDIR)$(mandir)/man7" does not override the umask. I suspect that the parameter -m0644 should be passed to these invocations too. Best, --=20 Antoine Amarilli --dxzglnmjkmoztgqa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOcjWpfrki1T9GCYxgNiLItQzAzEFAlpWW6UACgkQgNiLItQz AzEsgQ//VzmuPKcooaJxUZhfvRnOGjQSswHXaOSM8gde5wXUK/Qx3eRrLFgwgecG bdRMyLdNfQQC3uRF3s71DwnMLqBVnTp0X0sDnbXIDXjL23B8ThBqE4A+ZQi0GPCp hX3Bi5+u8UHw0a+FpNNFvM8hGsduyyPNP+BJu2Psss5WGsyZ/PaOfptF4nXJVKMZ hkJ2pHrOaXKfRXqEHmPlfIyQiX4bwL8Ba82LW92SsufSUihHrrMEiXGY7g0D5iu5 fLPUpc7MCAdw9GphB+X4XbvhqN8YsuvAgj8kKdqeNQMZ++eVV4Xq4rLrW7YDQy+B 4Nat1XRqNJbc3WmJtaKAY1tFZnVR1U/5ivaJWuOwlGmt8RNTQ0o9xWopIK4oPK+Z FBtPiAHh935iRFYwW1npvO6cS6oIXdRLastz+C0UYaE5+T8DbsXhouCZvuftpdrp XCPFcxeplmuxY6cKvSbJggr+mdUiYkzHhpK864Kg03B+ps10Krz8dBmFA+mFOLYY s7YiIp8IazkVPIXN+zyVvi0WsnjOoYpE05Jb7JFfdk/AQIOqI74x10zBjFCQRAvT IrMy4oOE1SOODTLAIdB23UaUo/Deu9nZJ1yTekSisF+XjYczDJuRZOJVjtZynizf roRLu6tzKkmuHzHZZvlXUETZQtz0qvg0dAbuXSYyhiiRS0IkCqg= =kN0Z -----END PGP SIGNATURE----- --dxzglnmjkmoztgqa--