teach find_root_device to deal with /dev/ subdirs
(by "Kirill K. Smirnov" <lich@math.spbu.ru>)
This commit is contained in:
parent
334fa9bcb5
commit
16abcd90ae
9 changed files with 71 additions and 27 deletions
|
@ -1369,7 +1369,7 @@ static void dir_operation(int type, const char * dir_name, int var, unsigned lon
|
|||
while ( (de = readdir (dp) ) != NULL )
|
||||
{
|
||||
|
||||
if(de->d_name && *de->d_name == '.' && (!de->d_name[1] || (de->d_name[1] == '.' && !de->d_name[2])))
|
||||
if(de->d_name && DOT_OR_DOTDOT(de->d_name))
|
||||
continue;
|
||||
snprintf (path, sizeof (path), "%s/%s", dir_name, de->d_name);
|
||||
debug_msg_logger(LOG_ERR, "%s: %s", __FUNCTION__, path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue