Skip to content

Commit

Permalink
save BOOTCONFIG even if old file is from the future
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Sep 30, 2024
1 parent 14bb98b commit b7217b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions woof-code/rootfs-petbuilds/psnapcp/psnapcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}

if (dststat.st_size == srcstat.st_size && dststat.st_mtime >= srcstat.st_mtime)
goto meta;

if (dststat.st_size != srcstat.st_size && ftruncate(dst, srcstat.st_size) < 0) {
fprintf(stderr, "Failed to set %s size: %s\n", argv[2], strerror(errno));
close(dst);
Expand Down

0 comments on commit b7217b2

Please sign in to comment.