GNU bug report logs - #11427
cp 8.16 not writing through, writing over

Previous Next

Package: coreutils;

Reported by: karl <at> freefriends.org (Karl Berry)

Date: Mon, 7 May 2012 13:22:02 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: karl <at> freefriends.org (Karl Berry)
To: bug-coreutils <at> gnu.org
Subject: cp 8.16 not writing through, writing over
Date: Mon, 7 May 2012 13:19:02 GMT
Create dangling symlink:
$ ln -s foo bar

Attempt to write over it with cp:
$ \cp -i /etc/issue bar
cp: not writing through dangling symlink 'bar'

In the past, it would ask me if I wanted to replace bar.  (As desired.)

The error message makes me think that it is thinking I am writing
"through" a dangling symlink to a directory.  But that gets
a different error message, which seems fine:
$ \cp -i /etc/issue bar/baz
cp: cannot create regular file 'bar/baz': No such file or directory

coreutils 8.16, compiled from original source on CentOS 5.8 (libc 2.5, 
it seems).

karl




This bug report was last modified 13 years and 13 days ago.

Previous Next


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