mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
special file check fix
This commit is contained in:
parent
3144f40068
commit
82bad7fec6
@ -461,7 +461,7 @@ int openFileForFlash(char *mess, FILE **flashfd, FILE **srcfd) {
|
||||
return FAIL;
|
||||
}
|
||||
// non zero = block special file
|
||||
if (!S_ISBLK(buf.st_mode)) {
|
||||
if (S_ISBLK(buf.st_mode)) {
|
||||
sprintf(mess,
|
||||
"Could not %s. The flash drive found is a normal file. To "
|
||||
"delete this file, create the flash drive and proceed with "
|
||||
|
Loading…
x
Reference in New Issue
Block a user