diff options
author | Minghui Liu <minghui.liu.95@gmail.com> | 2018-04-12 14:31:11 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-04-12 18:40:04 -0500 |
commit | b6427f1bfe7291d6dcb102660685a2fc3bfc5123 (patch) | |
tree | 715bd25d307f41688e84dbe94a590f698cd8c12f /toys/posix | |
parent | 8fdd58a02257baf8f2bca1c086571ea7b7e17365 (diff) | |
download | toybox-b6427f1bfe7291d6dcb102660685a2fc3bfc5123.tar.gz |
Fix "cp -p" doesn't preserve timestamps bug
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/cp.c | 2 |
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. |