Page MenuHomeFreeBSD

D43064.id.diff
No OneTemporary

D43064.id.diff

diff --git a/bin/cp/utils.c b/bin/cp/utils.c
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -145,6 +145,7 @@
if (fflag) {
/* remove existing destination file */
(void)unlink(to.p_path);
+ dne = 1;
}
}
@@ -166,7 +167,7 @@
goto done;
}
- if (!dne && !fflag) {
+ if (!dne) {
/* overwrite existing destination file */
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
} else {

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 28, 9:39 PM (6 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32307027
Default Alt Text
D43064.id.diff (405 B)

Event Timeline