Changeset 26253 in vbox
- Timestamp:
- Feb 5, 2010 12:35:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/sysfs.cpp
r26163 r26253 413 413 break; 414 414 } 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)) 416 416 continue; 417 417 … … 438 438 break; 439 439 } 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) < 0443 || S_ISLNK(Stat.st_mode))444 continue;445 #endif446 440 strcat(&szPath[cchBasePath], "/"); 447 441 rcRet = rtLinuxFindDevicePathRecursive(DevNum, fMode, szPath, pszBuf, cchBuf);
Note:
See TracChangeset
for help on using the changeset viewer.