diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-12 08:01:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-12 08:01:48 +0000 |
commit | f849e0aaac8bbb08a9afdfa5fc8272e7835040f5 (patch) | |
tree | 3fa66b731680f22bcaa679e594e8dafc34a8b32d /src | |
parent | 7e6aff288f5e7453292caa93c66a11852fadb683 (diff) | |
download | coreutils-f849e0aaac8bbb08a9afdfa5fc8272e7835040f5.tar.xz |
(do_move): Give one diagnostic, not two, when unable to
unlink a destination file. This bug was introduced in fileutils-3.16l.
$ /bin/mv /etc/passwd /tmp
/bin/mv: cannot unlink `/etc/passwd': Permission denied
/bin/mv: cannot remove `/etc/passwd': Permission denied
[Exit 1]
Diffstat (limited to 'src')
-rw-r--r-- | src/mv.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -248,9 +248,6 @@ do_move (const char *source, const char *dest, const struct cp_options *x) assert (VALID_STATUS (status)); if (status == RM_ERROR) fail = 1; - - if (fail) - error (0, errno, _("cannot remove %s"), quote (dir_to_remove)); } } |