Changeset 39627 in vbox for trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
- Timestamp:
- Dec 15, 2011 11:44:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r39626 r39627 194 194 195 195 196 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf , uint32_t fOpen)196 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf) 197 197 { 198 198 NOREF(pszPathBuf); /* only used on windows */ … … 205 205 if (RT_SUCCESS(rc)) 206 206 { 207 #if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) 208 /* XXX Darwin? */ 209 if (fOpen & RTDIROPEN_FLAGS_NO_SYMLINKS) 210 { 211 const char *pszName; 212 int fhDir; 213 rc = rtPathOpenPathNoFollowFh(pszNativePath, &fhDir, &pszName); 214 printf("rtPathOpenPathNoFollowFh '%s' => %d\n", pszNativePath, rc); 215 AssertRCReturn(rc, rc); 216 if (pszName != NULL) 217 { 218 AssertMsgFailed(("Path name '%s' contains filename\n", pszNativePath)); 219 return VERR_INVALID_PARAMETER; 220 } 221 pDir->pDir = fdopendir(fhDir); 222 /* 223 * do NOT close fhDir, it will be closed implicitely when closing pDir! 224 */ 225 } 226 else 227 #endif 228 { 229 pDir->pDir = opendir(pszNativePath); 230 } 207 pDir->pDir = opendir(pszNativePath); 231 208 if (pDir->pDir) 232 209 {
Note:
See TracChangeset
for help on using the changeset viewer.