aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/touch.c
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:46:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:46:42 +0000
commit41a3f31c07957aeb51d74ad022cd7fcbf75dda48 (patch)
tree5dbbb5fd7edc0e5025ee19f52aea2a52fee72b1c /toys/posix/touch.c
parenta38a71b5f293449b0fe81d54fb914ea423e958b8 (diff)
parent9323773b0b13f0b51f0874572a4a87ce40855934 (diff)
downloadtoybox-aml_ase_341113000.tar.gz
Change-Id: I5831df133387ea0f70575ef4e58f50d13a5ed8ed
Diffstat (limited to 'toys/posix/touch.c')
-rw-r--r--toys/posix/touch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/posix/touch.c b/toys/posix/touch.c
index 5e33d7f7..e687ff81 100644
--- a/toys/posix/touch.c
+++ b/toys/posix/touch.c
@@ -71,7 +71,6 @@ void touch_main(void)
if (!strcmp(s, "-")) {
if (!futimens(1, ts)) continue;
} else {
- // cheat: FLAG_h is rightmost flag, so its value is 1
if (!utimensat(AT_FDCWD, s, ts, FLAG(h)*AT_SYMLINK_NOFOLLOW)) continue;
if (FLAG(c)) continue;
if (access(s, F_OK) && (-1!=(fd = open(s, O_CREAT, 0666)))) {