"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: Regress: replace unportable "ln -h"
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 2 Mar 2023 23:31:54 +0100

Download raw body.

Thread
On Thu, Mar 02, 2023 at 10:53:18PM +0100, Christian Weisgerber wrote:
> The -h option to ln(1) is not portable.  The regression tests use
> it to replace a symlink pointing to a directory; without it, a
> symlink would be created inside the linked directory.  I suggest
> to simply replace it with "rm symlink && ln -s foo symlink".
> 
> This could be a local change in -portable, but I think it is not
> too onerous to have it in main and shrink the diff to -portable.
> 
> Thomas: This also obviates the need for ln() in common.sh.
> 
> OK?

Sure, works for me.