binaries in. fixed

This commit is contained in:
2022-03-24 12:33:19 +01:00
parent 5fe10c19a1
commit 1e564a1b33
11 changed files with 28 additions and 20 deletions

View File

@ -158,7 +158,7 @@ int openFileForFlash(char *mess, FILE **flashfd) {
LOG(logERROR, (mess));
return FAIL;
}
// non zero = block special file
// zero = normal file (not block special file)
if (S_ISBLK(buf.st_mode)) {
// memory is not permanent
sprintf(mess,
@ -169,6 +169,7 @@ int openFileForFlash(char *mess, FILE **flashfd) {
LOG(logERROR, (mess));
return FAIL;
}
LOG(logINFO, ("\tValidated flash drive (not a normal file)\n"));
#endif
*flashfd = fopen(flashDriveName, "w");