From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oBw1HQs39GYKZwAAe85BDQ:P1 (envelope-from ) for ; Wed, 25 Sep 2024 16:15:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oBw1HQs39GYKZwAAe85BDQ (envelope-from ) for ; Wed, 25 Sep 2024 18:15:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=N09aDa+c; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VwWCEyXq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727280907; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CHItAW7EcakzZFlzvtOTujYM33yN/kei3j1GZh+p8DU=; b=PTwOWAAbvgW+xu+bXlYgsARF5YjJd3+RQu+pJWzBly4aHsu3C19fLvkKvmTBSMv+ZnncG4 JCw7ONTbag4oQtKrmuOOu2N3k+6zlTn1rMOgTAJM7r8BEhQugwzdO7i42nLNnasEj8cvkZ xODhu7hT9YA+oY+X811NpmEOFeskyzkttRKT6tjGDwYQVuLF9pxPmPDAXjbc/+PCY53N03 582VpjBc9sK7iOeGascBw+LdDB1/ZlwBe6+/La30APFfOWuB7S8bDe2bwbPrb8NebSycOC jHk+0CUVLace57mtBiuwjWfHmgOBqAQ8UZQu/bjGA59e31fFBUmcd9JWwyTgdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=N09aDa+c; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VwWCEyXq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727280907; a=rsa-sha256; cv=none; b=iAZKDj6d7z8kFWRIwGbjCG/dStoW3L2z7G0BxWTTbbYrlsc7jvrDyCT+RP6rpYlC750hkY FMiqm4++4KelbMpZv+NHBfo8U78n1PwHeu+d14euk8iXiPNsfrD1Hlcr7gKm+UeHCTeCvs Op0JdJezUU+ymEEQf84HMrVba4s8/7olMH1bJgHLgeJx2tR6k7PLwVY/jdQJsoceesyOed 53ezhekJ6lIvv1Q/1TJhQMZIXvEjTph1cle76Cn3CvZ5g3LcIoRBiZESEVJLMwuvg0YPOn hA/RTJbXAsm+sni5Q4UTfg9JJvQqyKaijIUxFQiiQm0Aby7SnTXwuWjk51n6nw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3BF748E85 for ; Wed, 25 Sep 2024 18:15:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stUfD-0000yh-Nf; Wed, 25 Sep 2024 12:14:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stUez-0000xq-D3 for guix-patches@gnu.org; Wed, 25 Sep 2024 12:14:37 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stUey-0001u4-K9 for guix-patches@gnu.org; Wed, 25 Sep 2024 12:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=CHItAW7EcakzZFlzvtOTujYM33yN/kei3j1GZh+p8DU=; b=N09aDa+crt6etm2esWFc1ED/NmK8Gp/57pKTQunS8FpT0dgb8gBoOBeYGwo27W6WU8/dq2pT/UbVmuzPtHupGRF6OBWpqsu9s2DekA5LchUbvPvFqedegiCbB1ICYorWA6AtwgyzcskSOwKJLC5vomvWKCd0htUy0aul55Kj/OHCwKn7oYTI7+weebyQbsMRRmOjd9D396TvPjlMXbQeN7suIumLjA0fJOEvsBYe8bOUTlnmkuPKxumQBtP2tBpwdVDt+vaMyfz7NN8fLmHV5vUmmUTqNOy6+pUMOggdvoase3YA2yxGDrYxqxC6GKchqeCH+hsPrOhEHXswQxQ0uQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stUfO-0005ZZ-F5 for guix-patches@gnu.org; Wed, 25 Sep 2024 12:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72920] [PATCH 2/3] services: cleanup: Create directories with the right mode upfront. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 25 Sep 2024 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72920 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Hilton Chain Cc: 72920-done@debbugs.gnu.org Received: via spool by 72920-done@debbugs.gnu.org id=D72920.172728090121399 (code D ref 72920); Wed, 25 Sep 2024 16:15:02 +0000 Received: (at 72920-done) by debbugs.gnu.org; 25 Sep 2024 16:15:01 +0000 Received: from localhost ([127.0.0.1]:44476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stUfM-0005Z4-Ll for submit@debbugs.gnu.org; Wed, 25 Sep 2024 12:15:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stUfK-0005YZ-JG for 72920-done@debbugs.gnu.org; Wed, 25 Sep 2024 12:14:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stUeo-0001sM-0q; Wed, 25 Sep 2024 12:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=CHItAW7EcakzZFlzvtOTujYM33yN/kei3j1GZh+p8DU=; b=VwWCEyXqixtw16UZedjN MxTq+1wIX2IqTLJys4NKieoxgz9MAYNDYHWQcDWBwM+Xh5oMW69zMRi3gLXm9vKPzb40rdb7qvssy +Wjq7hMn4GHiMn7ekyJO6aUZoFU+Ry9NDXgZvDLgC65jSkW06bBKIDgIgHtxVcUiwaeoIyhOwA62B a7J3Zdc5zqNjLldCPNIhrj2PYubqBKxSxhr72x2LsMSRjds6f92kjdSx3KmRq1DkWG5UdLLDrvkmi WDlnA8YOVpNAlkz2nmKkGKSjEi+sDFVkG58vwNjMC4QWj6eoPoCuZ/t56MHIxV4hYYr25z6wpRS+G L73H2MZF41hODg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87jzf595ff.wl-hako@ultrarare.space> (Hilton Chain's message of "Sat, 21 Sep 2024 09:11:32 +0800") References: <87jzf595ff.wl-hako@ultrarare.space> Date: Wed, 25 Sep 2024 18:14:20 +0200 Message-ID: <871q17sobn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.01 X-Spam-Score: -7.01 X-Migadu-Queue-Id: 3BF748E85 X-Migadu-Scanner: mx10.migadu.com X-TUID: 47279LuUbNtc Hi Hilton, Hilton Chain skribis: [...] >> - (mkdir "/tmp") >> - (chmod "/tmp" #o1777) >> - (mkdir "/var/run") >> - (chmod "/var/run" #o755) >> + (mkdir "/tmp" #o1777) >> + (mkdir "/var/run" #o755) >> (delete-file-recursively "/run/udev/watch.old")))))) >> >> (define cleanup-service-type > > It seems that the mode is not applied correctly: > > $ guile -c '(mkdir "/tmp/test" #o1777)' && stat /tmp/test > [...] > Access: (1755/drwxr-xr-t) Uid: ( 1000/ hako) Gid: ( 998/ users) Oops, I saw your message too late, apologies. Commit f92151133da4b98f98e755ce0996e8be59acac72 fixes that and adds a test so we can catch it next time. The story is that the 2nd argument to =E2=80=98mkdir=E2=80=99 is and=E2=80= =99ed with umask, something that I had forgotten. Thanks and sorry for the mess. Ludo=E2=80=99.