diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-13 15:49:06 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-13 15:49:06 +0200 |
commit | 9c210f0efb1959895df237a96210a73253b5b9ed (patch) | |
tree | 80f800d0270b1838edbe1bed029ec05ab3acc8a3 | |
parent | 6b6ff80299cd840849532405b4ca758ce44089f5 (diff) | |
download | busybox-w32-9c210f0efb1959895df237a96210a73253b5b9ed.tar.gz busybox-w32-9c210f0efb1959895df237a96210a73253b5b9ed.tar.bz2 busybox-w32-9c210f0efb1959895df237a96210a73253b5b9ed.zip |
touch: fix previous commit
function old new delta
touch_main 423 414 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c index 355455363..6c0201374 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -173,7 +173,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv) | |||
173 | /* Try to create the file */ | 173 | /* Try to create the file */ |
174 | fd = open(*argv, O_RDWR | O_CREAT, 0666); | 174 | fd = open(*argv, O_RDWR | O_CREAT, 0666); |
175 | if (fd >= 0) { | 175 | if (fd >= 0) { |
176 | if (reference_file || date_str) | 176 | if (opts & (OPT_r|OPT_d|OPT_t)) |
177 | futimens(fd, timebuf); | 177 | futimens(fd, timebuf); |
178 | xclose(fd); | 178 | xclose(fd); |
179 | continue; | 179 | continue; |