Adds the implementation of the new test-nano command.

This commit is contained in:
Andrea Mazzoleni 2014-05-18 15:11:18 +02:00
parent de86307a27
commit adc4f196fa
6 changed files with 185 additions and 57 deletions

View file

@ -1343,11 +1343,12 @@ close_and_continue:
}
/* set the original modification time */
ret = file_utime(file, f);
ret = fmtime(f, file->mtime_sec, file->mtime_nsec);
if (ret != 0) {
/* LCOV_EXCL_START */
close(f);
fprintf(stderr, "Error timing file '%s'. %s.\n", file->sub, strerror(errno));
fprintf(stderr, "WARNING! Without a working data disk, it isn't possible to fix errors on it.\n");
printf("Stopping\n");
++unrecoverable_error;