aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorMinghui Liu <minghui.liu.95@gmail.com>2018-04-12 14:31:11 -0700
committerRob Landley <rob@landley.net>2018-04-12 18:40:04 -0500
commitb6427f1bfe7291d6dcb102660685a2fc3bfc5123 (patch)
tree715bd25d307f41688e84dbe94a590f698cd8c12f /toys
parent8fdd58a02257baf8f2bca1c086571ea7b7e17365 (diff)
downloadtoybox-b6427f1bfe7291d6dcb102660685a2fc3bfc5123.tar.gz
Fix "cp -p" doesn't preserve timestamps bug
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c
index f0522af9..216d4592 100644
--- a/toys/posix/cp.c
+++ b/toys/posix/cp.c
@@ -371,7 +371,7 @@ void cp_main(void)
error_exit("'%s' not directory", destname);
if (toys.optflags & (FLAG_a|FLAG_p)) {
- TT.pflags = CP_mode|CP_ownership|CP_timestamps;
+ TT.pflags = _CP_mode|_CP_ownership|_CP_timestamps;
umask(0);
}
// Not using comma_args() (yet?) because interpeting as letters.