VirtualBox

Changeset 26253 in vbox


Ignore:
Timestamp:
Feb 5, 2010 12:35:01 AM (15 years ago)
Author:
vboxsync
Message:

sysfs.cpp: Drop the temporary hack, it's not needed and generate warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/sysfs.cpp

    r26163 r26253  
    413413                break;
    414414            }
    415             if (RTFS_IS_SYMLINK(Entry.Info.Attr.fMode)) /* paranoia. @todo RTDirReadEx now returns symlinks, see also #if 1 below. */
     415            if (RTFS_IS_SYMLINK(Entry.Info.Attr.fMode))
    416416                continue;
    417417
     
    438438                break;
    439439            }
    440 #if 1 /** @todo This is a temporary hack, as RTDirReadEx in 3.0 doesn't know about symbolic links. */
    441             struct stat Stat = { 0 };
    442             if (   lstat(szPath, &Stat) < 0
    443                 || S_ISLNK(Stat.st_mode))
    444                 continue;
    445 #endif
    446440            strcat(&szPath[cchBasePath], "/");
    447441            rcRet = rtLinuxFindDevicePathRecursive(DevNum, fMode, szPath, pszBuf, cchBuf);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette