From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2696 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6-log can create current with 640? Date: Sat, 26 Oct 2019 13:08:10 +0000 Message-ID: References: <6f3a28f8-798c-9a55-e79b-2e54b37edf2e@heuristicsystems.com.au> <01b8c564-887f-16cf-405c-8bcfc52c02b1@heuristicsystems.com.au> <62d9001a-73bd-5cfe-4c47-f561c4dfabea@heuristicsystems.com.au> <9f1c10ea-a512-438d-dd3b-4d84119394fe@heuristicsystems.com.au> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156810"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: eM_Client/7.2.36908.0 Cc: Supervision To: "Dewayne Geraghty" Original-X-From: supervision-return-2285-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Oct 26 15:08:14 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iOLnh-000eZe-1l for gcsg-supervision@m.gmane.org; Sat, 26 Oct 2019 15:08:13 +0200 Original-Received: (qmail 2623 invoked by uid 89); 26 Oct 2019 13:08:37 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 2616 invoked from network); 26 Oct 2019 13:08:37 -0000 In-Reply-To: X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrleehgdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfrhgfgggtgfesthhqredttderjeenucfhrhhomhepfdfnrghurhgvnhhtuceuvghrtghothdfuceoshhkrgdqshhuphgvrhhvihhsihhonhesshhkrghrnhgvthdrohhrgheqnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtnecuvehluhhsthgvrhfuihiivgeptd Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2696 Archived-At: >A little bit more thought has resulted in a generic script which can >implement any of the useless POSIX-required ``regular shell builtin'' Yeah, so it's another one of those functions that only make sense as shell builtins but that are still also implemented as external commands. Beats me why systems insist on having those commands, since they're=20 never invoked and are an utter waste of space. The only solution to your predicament is to make sure that the location of execline's umask binary in your PATH appears *before* the location of the system umask binary. Normally that's the case, since the execline utilities are in /usr/local/bin and the system utilities are in=20 /usr/bin; you should _always_ have /usr/local/bin before /usr/bin in your PATH, because programs installed by the administrator should always override programs installed by default by the distributor. For some reason it's not the case in the execline script you're=20 invoking; you need to make sure your supervision tree is invoked with a proper=20 PATH. (Also, I'll have to write a posix-umask command in the same way as posix-cd, but that's totally unrelated to your problem and wouldn't fix your PATH issue.) -- Laurent