mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +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;
|
return FAIL;
|
||||||
}
|
}
|
||||||
// non zero = block special file
|
// non zero = block special file
|
||||||
if (!S_ISBLK(buf.st_mode)) {
|
if (S_ISBLK(buf.st_mode)) {
|
||||||
sprintf(mess,
|
sprintf(mess,
|
||||||
"Could not %s. The flash drive found is a normal file. To "
|
"Could not %s. The flash drive found is a normal file. To "
|
||||||
"delete this file, create the flash drive and proceed with "
|
"delete this file, create the flash drive and proceed with "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user