Skip to content

Commit

Permalink
pkg verify
Browse files Browse the repository at this point in the history
  • Loading branch information
stooged committed Feb 19, 2019
1 parent aad0a24 commit a80f4ca
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions AppToUsb/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,19 @@ void copyFile(char *sourcefile, char* destfile)
close(out);
isxfer = 0;
xfer_pct = 0;
xfer_cnt = 0;
unlink(sourcefile);
symlink(destfile, sourcefile);
xfer_cnt = 0;
if (file_compare(sourcefile, destfile))
{
unlink(sourcefile);
symlink(destfile, sourcefile);
}
else
{
char cmsg[1024];
unlink(destfile);
sprintf(cmsg, "%s failed to transfer properly", sourcefile);
systemMessage(cmsg);
}
}
else {
}
Expand Down

0 comments on commit a80f4ca

Please sign in to comment.