From b6427f1bfe7291d6dcb102660685a2fc3bfc5123 Mon Sep 17 00:00:00 2001 From: Minghui Liu Date: Thu, 12 Apr 2018 14:31:11 -0700 Subject: Fix "cp -p" doesn't preserve timestamps bug --- toys/posix/cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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. -- cgit v1.2.3