touch: don't segfault when unable to touch

This commit is contained in:
K. Lange 2021-09-07 19:00:07 +09:00
parent e6fd57b3e7
commit fbb4ba506d

View File

@ -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);
}