From fbb4ba506d002f725154490ccfd6c95f1e02bff9 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 7 Sep 2021 19:00:07 +0900 Subject: [PATCH] touch: don't segfault when unable to touch --- apps/touch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/touch.c b/apps/touch.c index 999c1f7d..7f7bad28 100644 --- a/apps/touch.c +++ b/apps/touch.c @@ -22,6 +22,7 @@ int main(int argc, char * argv[]) { if (!f) { fprintf(stderr, "%s: %s: %s\n", argv[0], argv[i], strerror(errno)); out = 1; + continue; } fclose(f); }