Changeset 10911 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Jul 28, 2008 12:58:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/path-posix.cpp
r8256 r10911 982 982 } 983 983 984 985 RTDECL(int) RTPathSetCurrent(const char *pszPath) 986 { 987 /* 988 * Validate input. 989 */ 990 AssertPtrReturn(pszPath, VERR_INVALID_POINTER); 991 AssertReturn(*pszPath, VERR_INVALID_PARAMETER); 992 993 /* 994 * Change the directory. 995 */ 996 char *pszNativePath; 997 int rc = rtPathToNative(&pszNativePath, pszPath); 998 if (RT_SUCCESS(rc)) 999 { 1000 if (chdir(pszNativePath)) 1001 rc = RTErrConvertFromErrno(errno); 1002 RTStrFree(pszNativePath); 1003 } 1004 return rc; 1005 } 1006
Note:
See TracChangeset
for help on using the changeset viewer.