mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Find devices when /sys/block contains directories.
This commit is contained in:
@@ -60,7 +60,7 @@ DeviceInfoList* ListDevices()
|
||||
|
||||
while(dirent)
|
||||
{
|
||||
if(dirent->d_type != DT_REG && dirent->d_type != DT_LNK)
|
||||
if((dirent->d_type != DT_DIR && dirent->d_type != DT_LNK) || dirent->d_name[0] == '.')
|
||||
{
|
||||
dirent = readdir(dir);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user