mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-23 11:49:39 +00:00
touch: fix previous commit
function old new delta touch_main 423 414 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6b6ff80299
commit
9c210f0efb
@ -173,7 +173,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv)
|
||||
/* Try to create the file */
|
||||
fd = open(*argv, O_RDWR | O_CREAT, 0666);
|
||||
if (fd >= 0) {
|
||||
if (reference_file || date_str)
|
||||
if (opts & (OPT_r|OPT_d|OPT_t))
|
||||
futimens(fd, timebuf);
|
||||
xclose(fd);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user