Page MenuHomeFreeBSD

D43064.id131440.diff
No OneTemporary

D43064.id131440.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
Sun, Feb 8, 9:42 PM (14 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28501452
Default Alt Text
D43064.id131440.diff (405 B)

Event Timeline