summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-01 14:09:19 +0000
committerJim Meyering <jim@meyering.net>2000-05-01 14:09:19 +0000
commit624dd54796656c89a82d359bebc42774f5e90549 (patch)
tree354b8633ec26e5b22eec2388047c997d8edd293f /src
parentef34c8704c99dbe54b0f7a7fabbc3d1c9ca9b16c (diff)
downloadcoreutils-624dd54796656c89a82d359bebc42774f5e90549.tar.xz
(change_attributes): Don't remove the destination file upon failure.
Diffstat (limited to 'src')
-rw-r--r--src/install.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/install.c b/src/install.c
index 20931f63b..b34909b76 100644
--- a/src/install.c
+++ b/src/install.c
@@ -517,13 +517,6 @@ change_attributes (const char *path)
err = 1;
}
- if (err)
- {
- error (0, 0, "removing file: `%s'", path);
- if (unlink (path))
- error (0, errno, "cannot remove `%s'", path);
- }
-
return err;
}