From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CIbTDMbeK2F7RAEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 21:23:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uOkoCMbeK2GNGwAAbx9fmQ (envelope-from ) for ; Sun, 29 Aug 2021 19:23:50 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2090116DE2 for ; Sun, 29 Aug 2021 21:23:49 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5B9EB1FAB7; Sun, 29 Aug 2021 15:23:44 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 50EAA1FA77 for ; Sun, 29 Aug 2021 15:23:42 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id B56AA5FD5C; Sun, 29 Aug 2021 15:23:41 -0400 (EDT) Received: (nullmailer pid 4192475 invoked by uid 1000); Sun, 29 Aug 2021 19:23:39 -0000 From: David Bremner To: David Bremner , Tomi Ollila , Matt Armstrong , notmuch@notmuchmail.org Subject: Wrap process creating primitives with safe CWD Date: Sun, 29 Aug 2021 12:23:26 -0700 Message-Id: <20210829192335.4192305-1-david@tethera.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <87tvgqzq1o.fsf@tethera.net> References: <87tvgqzq1o.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2NET3SGYCNTUO2XSJZFPX3TR2BQLUUYH X-Message-ID-Hash: 2NET3SGYCNTUO2XSJZFPX3TR2BQLUUYH X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630265029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=0JxAt++jqcSbLFbKURRKDK7KofqssTJkhR1xVQolWTg=; b=WdM+mF7cPTlyuQVXZ++HPjojIm4dyIKhnLtL5RQ+XB60JIAGakuRLsWP8UXNouu4teA8CB URTakiniX+BO/O5cUECfgv/EM5G+UpCqeryub0FG2gHbHcuMxNgsrkJaLWq23Y7i0GrXzP IKOSPFrEH0WE4+K3YWo/yos5FKlke//JqAolI3DRhpyiI4h3CO5nFazCgZu4gXFLKA4cOm Y32SfJb5CeiYmpsk8ByWtlRWaBVkr2UoukAtXSpAdtSTP8JbzAHdmmBGdOQrKmF2mIT6Ud cYcmXVQCbNHNLWfZcgqZIZILFBEf0tTimVhVraE+NrqqPUN3EqZnlgfKZNNvSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630265029; a=rsa-sha256; cv=none; b=lpO12YKEbyidOihffJTOptMDY/fvydb0gkVfvErBsyRjNKNhBn9n0NS6MKWwSMJEp8O8Ey lf/rQUZNtdkeuf0Vtb6QJ23zR+YEA0B18EFXkCigFkswjAIM4BnQIcanBH5ofXzFknawh+ 7HdPdXGUiOpiob3f9Z9u9zWKHS0w4axxnTt4hOnoCujimC6DaGTzWwsj1hPyO79/3R8ifc nADs8Ei0SiV649sSWeQ//W531VIVAbSjC/5De5Rz9bKM3vfnmS5HavD26GV3hQ0+NUEDz7 MalLGU6tBymZxRNzgVKPbfUJzME31pVg4ajxIShfaLN/jx/EivjDmYCNua00Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2090116DE2 X-Spam-Score: -0.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rv4J1nqS9Un/ This a bit more of a change than I was expecting, but there is nothing very tricky here (except getting the tests for exceptions in emacs working took a bit of effort). I decided against trying to normalize the use of process-creating primitives (e.g. to all make-process or whatever) in this series, but that seems like it would be a reasonable project.