Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144332782
D43064.id131440.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.id131440.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
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)
Attached To
Mode
D43064: cp: Further simplify the core logic.
Attached
Detach File
Event Timeline
Log In to Comment