[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7450: cp does not check for errno=EISDIR when target is dangling lin
From: |
Марк Коренберг |
Subject: |
bug#7450: cp does not check for errno=EISDIR when target is dangling link |
Date: |
Sat, 20 Nov 2010 18:39:58 +0500 |
How to reproduce:
$ ln -s non-exist tgt
$ cp /etc/passwd tgt
cp: not writing through dangling symlink `tgt'
As we see, cp know, that if retval EEXIST and target is symlink,
special responce given.
Now, try to add slash at the end of target:
$ cp /etc/passwd tgt/
cp: cannot create regular file `tgt/': Is a directory
Novices can not understand this message :)
cp should check if (target is symlink and error is EISDIR) and report
message like this:
cp: Trying to use dangling symlink `tgt' as a directory
--
Segmentation fault
- bug#7450: cp does not check for errno=EISDIR when target is dangling link,
Марк Коренберг <=
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Alan Curry, 2010/11/20
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Jim Meyering, 2010/11/21
- bug#7450: cp does not check for errno=EISDIR when target is, Alan Curry, 2010/11/21
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Paul Eggert, 2010/11/21
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Jim Meyering, 2010/11/22
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Pádraig Brady, 2010/11/22
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Eric Blake, 2010/11/22
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Paul Eggert, 2010/11/22
- bug#7450: cp does not check for errno=EISDIR when target is dangling link, Eric Blake, 2010/11/22
bug#7450: cp does not check for errno=EISDIR when target is dangling link, Eric Blake, 2010/11/22