From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 09:15:47 2022 Received: (at 55270) by debbugs.gnu.org; 5 May 2022 13:15:47 +0000 Received: from localhost ([127.0.0.1]:44804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmbKc-0006x5-Vb for submit@debbugs.gnu.org; Thu, 05 May 2022 09:15:47 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:11088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmbKZ-0006lp-Bb for 55270@debbugs.gnu.org; Thu, 05 May 2022 09:15:45 -0400 Date: Thu, 05 May 2022 13:15:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1651756536; bh=jB6f2sTbM7hQ7UEGxBJXAiKsBa50JHGNMYF7k+oXMA4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=N0B1bx4qR2/SeRINiGq3qt7yU6rWqQs/43BJ2hWQlnD/YzkPvAwpwmYWxfbUobzVH gfOEZf0rA4cm506Di4yHpV/EpJ+Su3eIqRE4hBYpWqP4zL6TBsew/smihekKirFnZ0 Vks1jeEnuRS4e+bMqCs73BWuMKkkZGK01V7Q0+d45XNCxllNfr18q8tGbVRxetILZU 71aUDSR24gsuzhNzq8X2bJfdl4M73CetJNnMxZ66+GQHFCGEN4OqyOApQOfZ+6do8s jmSBZ5csVu1s3E/4EK7vIoKAbpgD3KkJNT8XfrgWp6fZlVpax6+/i9ckQI2K6Hmk5T /oR1Yxt0j4UmQ== To: Maxime Devos From: Attila Lendvai Subject: Re: bug#55270: unpack phase randomly changes the cwd Message-ID: In-Reply-To: <378a823f4ae3a60c2d3ad419b22958524c933b19.camel@telenet.be> References: <378a823f4ae3a60c2d3ad419b22958524c933b19.camel@telenet.be> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55270 Cc: 55270@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Attila Lendvai Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > It takes the first result 'scandir' -- i.e., the 'smallest' file name > according to string-locale reproducibility problems) fair enough. what i meant to communicate is that it's arbitrary, not random= . another potential issue: if the root of the archive contains a file called 'environment-variables', = then this way it would overwrite the one generated by Guix. this may not ne= cessarily be an issue, though, if that file is never used after the unpack = phase. maybe the cleanest would be to: 1) mkdir a directory ('extracted/'?) and chdir into it prior to unpacking, and 2) only do the DWIM chdir if the toplevel of the archive was a single dir. but i lack the necessary perspective to see all the implications. -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CThere is always a philosophy for lack of courage.=E2=80=9D =09=E2=80=94 Albert Camus (1913=E2=80=931960)