GNU bug report logs - #33573
--add-missing --copy should replace symlinks with real files

Previous Next

Package: automake;

Reported by: Ben Elliston <bje <at> air.net.au>

Date: Sun, 2 Dec 2018 06:47:01 UTC

Severity: wishlist

Tags: confirmed, easy, help

Full log


View this message in rfc822 format

From: Karl Berry <karl <at> freefriends.org>
To: bogdro_rep <at> gmx.us
Cc: automake-patches <at> gnu.org
Subject: bug#33573: Patch to replace symlinks with files
Date: Thu, 29 Dec 2022 16:33:03 -0700
    Another simple patch from my side: when '--copy' given to 
    '--add-missing', copy the standard files even if symlinks already exist.

I am not sure about changing the behavior here. Although the behavior
you propose is plausible, I fear that people might depend or expect on
failure if symlinks exist. It doesn't seem bad to me to require the user
to clean up their own symlinks, instead of assuming the overwriting
should be done. There's no way to know what the situation really is.

What I suggest is making the new behavior of deleting existing symlinks
iff -f is *also* given.  If the user says "force" and "copy" then ok, we
can figure they're asking for what they're getting.

Wdyt? --thanks, karl.

P.S. I hope to reply to your other patch in the next day or two.





This bug report was last modified 2 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.