cleanup
This commit is contained in:
@@ -320,12 +320,13 @@ void GetNewStorageDevices( vector<UsbStorageDevice>& vDevicesOut )
|
|||||||
|
|
||||||
for( unsigned i = 0; i < asDevices.size(); ++i )
|
for( unsigned i = 0; i < asDevices.size(); ++i )
|
||||||
{
|
{
|
||||||
if( asDevices[i] == "." || asDevices[i] == ".." )
|
const CString &sDevice = asDevices[i];
|
||||||
|
if( sDevice == "." || sDevice == ".." )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
UsbStorageDevice usbd;
|
UsbStorageDevice usbd;
|
||||||
|
|
||||||
CString sPath = sBlockDevicePath + asDevices[i] + "/";
|
CString sPath = sBlockDevicePath + sDevice + "/";
|
||||||
|
|
||||||
/* Ignore non-removable devices. */
|
/* Ignore non-removable devices. */
|
||||||
CString sBuf;
|
CString sBuf;
|
||||||
@@ -335,7 +336,7 @@ void GetNewStorageDevices( vector<UsbStorageDevice>& vDevicesOut )
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
usbd.sScsiDevice = "/dev/" + asDevices[i];
|
usbd.sScsiDevice = "/dev/" + sDevice;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* sPath/device should be a symlink to the actual device. For USB
|
* sPath/device should be a symlink to the actual device. For USB
|
||||||
|
|||||||
Reference in New Issue
Block a user