From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GC2HON2eG2JZVwAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 16:55:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GJMFNt2eG2LQjQAA9RJhRA (envelope-from ) for ; Sun, 27 Feb 2022 16:55:09 +0100 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 9DAD638327 for ; Sun, 27 Feb 2022 16:55:09 +0100 (CET) Received: from localhost ([::1]:42676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOLt6-0001AT-HY for larch@yhetil.org; Sun, 27 Feb 2022 10:55:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOLt0-0001AG-Ft for guix-patches@gnu.org; Sun, 27 Feb 2022 10:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOLt0-00018P-77 for guix-patches@gnu.org; Sun, 27 Feb 2022 10:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOLsz-0008Kv-Ry for guix-patches@gnu.org; Sun, 27 Feb 2022 10:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54180] [PATCH 05/12] home: symlink-manager: Remove 'empty-directory?' and avoid TOCTTOU race. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 54180@debbugs.gnu.org Received: via spool by 54180-submit@debbugs.gnu.org id=B54180.164597730132035 (code B ref 54180); Sun, 27 Feb 2022 15:55:01 +0000 Received: (at 54180) by debbugs.gnu.org; 27 Feb 2022 15:55:01 +0000 Received: from localhost ([127.0.0.1]:58977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOLsy-0008Kd-Oa for submit@debbugs.gnu.org; Sun, 27 Feb 2022 10:55:00 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:46358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOLsw-0008KU-T6 for 54180@debbugs.gnu.org; Sun, 27 Feb 2022 10:54:59 -0500 Received: from [192.168.158.254] ([188.188.52.46]) by baptiste.telenet-ops.be with bizsmtp id 0Fuw270050zovbQ01Fuwot; Sun, 27 Feb 2022 16:54:57 +0100 Message-ID: From: Maxime Devos Date: Sun, 27 Feb 2022 16:54:56 +0100 In-Reply-To: <20220227135342.10296-5-ludo@gnu.org> References: <20220227135342.10296-1-ludo@gnu.org> <20220227135342.10296-5-ludo@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-x6zeRj3dXb/eYPCIIq7L" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645977297; bh=aF8HST1BztPfQq/LJrzKvGdPbQOus3AsU3zRAKUm0QI=; h=Subject:From:To:Date:In-Reply-To:References; b=SkvdTLF+NdhX7hS4SgC6jRBXaCZ8doDehoyOVY2IRuijmYCJXtmkNCPIoRefP2pKJ XKbqOvBmqz/Xs8wEei/zPAaGc4B4V+Lt3EAcXyxOx58Er0wC0yxc2b40WRqujfiKpV atSnU7l0yGaLJU5tlhRA8QM0jaO+OiIwduV+2V+kY0iCO3HHm7e2SDTcIOE4BBWH6m Uj3R83U8WDjAYTRVnJj1d4ibjKSYcb5w3qrvCjdAMqpbthJPEKXE+c7cPPI/W6WLG3 59Ja6b0obhkEEu//luGR457a17FT4Wmw9ZQlbOE8HlGggvZiIjch1N6FLClK0AtGhP zoaLSj/LV7RDQ== 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645977309; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=aF8HST1BztPfQq/LJrzKvGdPbQOus3AsU3zRAKUm0QI=; b=NUgNp984fHmrMW3DXVwV7oyWklnDsf1hcInyUAC3nwn31PPB7cB9uE2iYA9m2xjS1pgSNI GU0WxJWZPhZ6pyqUWZTSSY4IlUuZe3x8f5sHfwQQeb5lhnq9C0ZWM95ruaqHZIGA5s99gI XdYh+WbNHGZy1Bb8X/cXjupyWclZjpWEIGbVFD7HksHHCsBHGbTW9I94vFX+58fY/IYG05 RbYI68RCFpL8HZVJLKY+jxTrpDgQ/FwZH9nSVSDT2wyjk4MYxKM/vO0GD72rxSmQtkA6H3 R/ULT5Zu1qQP9zrXfj2j5nesPquKV+sxoHsbR+AUL1p3Vr9c3vio5NXZb6ihjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645977309; a=rsa-sha256; cv=none; b=Z6ZE8JUl4g3b+uNiKeTKPNWjsN2ck5v3i5bReZ6QbpzwJMAWJElDylHPh9nzWEYwxUq4aO epousMvVwDvPRZB4zW5l0/3i/72QKVHkik/skRv76dEA7vihZFJ4+geqqT62YXprzn/W/T KNptdGCByd0B71VefbkrKkvBHaHz09qnVJTHLjL9Of7fLliBiD0brLdZBlb4Odh0MlzedU dtKv3wacQ/muW2H7JWUekY1uViCw84zye988dwwxhrbfYK5mNx+NnEL/y749kwR46ZYOtW QEICbPPrWUOmDaA/xW5sgPZ1zJsA+X8LvQEglY00Iz1mQPvG7kowHhb3iiVaIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=SkvdTLF+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Spam-Score: 2.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=SkvdTLF+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Queue-Id: 9DAD638327 X-Spam-Score: 2.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: eMzfTKF9pPlP --=-x6zeRj3dXb/eYPCIIq7L Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 THVkb3ZpYyBDb3V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digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhue0BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7j6iAQCsICNSwFBXqofjC2nbCBKZRCx0 BbWT9jCPAVGKmw8apQEAjgJSHkNL9WJDEGvj+RZGSJ423J1ECdfaqBv1pl7j2g4= =0lGV -----END PGP SIGNATURE----- --=-x6zeRj3dXb/eYPCIIq7L--