Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154330490
D43064.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
405 B
Referenced Files
None
Subscribers
None
D43064.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43064: cp: Further simplify the core logic.
Attached
Detach File
Event Timeline
Log In to Comment