stray symlinks

Chris Staub chris at
Thu Aug 23 23:33:58 PDT 2007

Brian Cheeseman wrote:
> Robert Connolly wrote:
>> Would -f fix this? The manual for 'cp' doesn't seem to speak of this problem.
>> robert
>> On Thursday August 23 2007 10:55:02 am goodoldmarty at wrote:
> Robert et al,
> The -f would definitely fix it as it forces the overwrite of symlinks.
> Cheers,
> Brian.

OK, paying more attention this time...looks like -f only removes the 
destination "if it cannot be opened". That's why LFS uses 
"--remove-destination" in the Glibc instructions on the command to copy 
the timezone file to /etc/localtime, so maybe that option is what's 
needed here, because it removes the destination file *before* trying to 
copy anything.

More information about the hlfs-dev mailing list