From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6DZXOYRz02axfAAAe85BDQ:P1 (envelope-from ) for ; Sat, 31 Aug 2024 19:48:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6DZXOYRz02axfAAAe85BDQ (envelope-from ) for ; Sat, 31 Aug 2024 21:48:21 +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=MxfaYMrM; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=oiPlxpCF; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725133700; 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=0g2IZrZ9jQzyJPh1dGsH/uYw8svCFTuXGXaNsjDUcjI=; b=nPzl2eaeUgv2pVSY/VqyamlP0wEvO4u73bZR74dcXbxpvlfj+0hCRGtTGZtfJMCEYy/TFR uf95p7MlAnOjyNzymQNULmeT5wioHir1F28x5CTGYPCoh3LSmkZDxqwZ0jLFOD/WhjELwM fwhNuDcggdZcMVife8udUw+sa1TgzvjFnKi/lJHnqywC+cBLWusKy8o7v0qvcGPyIcu42F GY4ku4OsOAbpSefHq43xC4BQnDg8PWMOpbMLSAW8aVavnL+IbLvzAE0XVNF7wMyWboGLwI FBy1u0yVMj8Yy1hhENICzWhldUGbpCIDwSX+cpSg+mqQvTwkOtsnlqCyfuPCsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725133700; a=rsa-sha256; cv=none; b=cmUxok0PpusFrNfor7doepD0JQqOgwNkPO6vgpPJfU00GkyDZ2kY7HkX+g9Tcnm2LsKdOV K8WGg8rpqvTrDGGqzjRL8DvY7E6/1hKHtc3+sBngJ/30JemUUECHc239E54hpjmFUjxmua j/AphH/0s6uM9WkBC7UdJNsFe4c9k40rtTQrw6xzzjg3l3ZHLr0VFu4eDUk4rt7S37NZQ0 Xy3utjG2ZSRgmmcEuuil5Ic8krJxJDro0uIkeqEkemD0+1tOe/M1DYg2qfWqoc0qyAUak/ TOZ56r7ZeQ1vwnDQdbUKHRLkProZK8F9mw/jsoc1K0JuXmMPYu/ZQi99kdTH9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=MxfaYMrM; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=oiPlxpCF; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 9218B3E906 for ; Sat, 31 Aug 2024 21:48:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skU4s-0007y9-7T; Sat, 31 Aug 2024 15:48:06 -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 1skU4q-0007xY-Tt for guix-patches@gnu.org; Sat, 31 Aug 2024 15:48:04 -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 1skU4q-0001Xw-Ko for guix-patches@gnu.org; Sat, 31 Aug 2024 15:48:04 -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:References:In-Reply-To:Date:From:To:Subject; bh=0g2IZrZ9jQzyJPh1dGsH/uYw8svCFTuXGXaNsjDUcjI=; b=MxfaYMrMA27q1hiqdr82inC0Z23ro9VjDg36XgnTf1h9A9yKPPd52DuGbYqX+2NN7bRN7OXW7ap+YCYqePN2hF41uCPG6ZByzDLcW3wppNF5laQJMuAo708moLim3bOWaRH10ZCwTRPsNHrwAzV3WmnAC5AWh0vQrmVj9+rktIMrTUh1JZlrHkHLJsYVZ2Bjo9E37LujrAsOZZMtxTs0bZMr8HD/MtNFcYIOvCJme/qCMnZryHRS6WJVRlE6ICREPLdSqOYNARjzOkBOiygrX7hI38jZzaNce9uVCfwd+W3D8yBHpKG9W//50iL6GsPVJ+XMGWT8MczDbuKA0v6ESA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skU5n-0002Ah-3C for guix-patches@gnu.org; Sat, 31 Aug 2024 15:49:03 -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: Sat, 31 Aug 2024 19:49:03 +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: 72920@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 72920-submit@debbugs.gnu.org id=B72920.17251337188280 (code B ref 72920); Sat, 31 Aug 2024 19:49:03 +0000 Received: (at 72920) by debbugs.gnu.org; 31 Aug 2024 19:48:38 +0000 Received: from localhost ([127.0.0.1]:56670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skU5O-00029P-Fz for submit@debbugs.gnu.org; Sat, 31 Aug 2024 15:48:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skU5M-00028u-Dz for 72920@debbugs.gnu.org; Sat, 31 Aug 2024 15:48:36 -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 1skU4K-0001Su-Ku; Sat, 31 Aug 2024 15:47:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=0g2IZrZ9jQzyJPh1dGsH/uYw8svCFTuXGXaNsjDUcjI=; b=oiPlxpCFKZTkpG3AziOi S4uEOgReM4VTK/0CdnBfMWhi2KO0nNKbwJByd4edNO2/aaQNssjJGMDey9kR8thnhdsZpPkOJb1sU GAP7Slk8XjzHXSEAy28BrJCRMo6gB6NAMNQjwvIIs2n8j6vKAeZGfoJCwc9rs8au51G9nu1MaG3qQ A1Xd6vwtGPaXlY4hSp3m6qktdRZ45JIDu6w34yhG/TgaB2IYA+KeMtO4ZDCPSUJ2QLk5iAbbRDDDV WQC9dCPUxlNZz/OGVkTznhxjAjwvwrg/GZPYBQozdlBIpD2yufC96cC7M+y9Y60Gk2CtF8q2cD3WF Bxu7nm8l/D4t8g==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 31 Aug 2024 21:47:23 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: -5.08 X-Spam-Score: -5.08 X-Migadu-Queue-Id: 9218B3E906 X-Migadu-Scanner: mx11.migadu.com X-TUID: d/fyLOZePFI3 * gnu/services.scm (cleanup-gexp): Pass mode as second argument to ‘mkdir’; remove ‘chmod’ calls. Change-Id: I8ac2dde0ca5d9bd6b2ef104d77141d8463d8b3fa --- gnu/services.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gnu/services.scm b/gnu/services.scm index ce13c087ce..4a8e2b3b15 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -660,10 +660,8 @@ (define (cleanup-gexp _) (delete-file-recursively "/tmp") (delete-file-recursively "/var/run") - (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 -- 2.45.2