vbox的更動 36906 路徑 trunk/src/VBox/Runtime/r3/posix
- 時間撮記:
- 2011-5-1 下午04:35:12 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/posix/path-posix.cpp
r34015 r36906 336 336 { 337 337 struct stat SrcStat; 338 if ( stat(pszNativeSrc, &SrcStat))338 if (lstat(pszNativeSrc, &SrcStat)) 339 339 return false; 340 340 struct stat DstStat; 341 if ( stat(pszNativeDst, &DstStat))341 if (lstat(pszNativeDst, &DstStat)) 342 342 return false; 343 343 Assert(SrcStat.st_dev && DstStat.st_dev); … … 381 381 * errors from the next step. 382 382 * 383 * There are race conditions here (perhaps unlikely ones but still), but I'm383 * There are race conditions here (perhaps unlikely ones, but still), but I'm 384 384 * afraid there is little with can do to fix that. 385 385 */ 386 386 struct stat SrcStat; 387 if ( stat(pszNativeSrc, &SrcStat))387 if (lstat(pszNativeSrc, &SrcStat)) 388 388 rc = RTErrConvertFromErrno(errno); 389 389 else if (!fFileType) … … 403 403 */ 404 404 struct stat DstStat; 405 if ( stat(pszNativeDst, &DstStat))405 if (lstat(pszNativeDst, &DstStat)) 406 406 rc = errno == ENOENT ? VINF_SUCCESS : RTErrConvertFromErrno(errno); 407 407 else … … 446 446 else 447 447 { 448 if ( stat(pszNativeDst, &DstStat))448 if (lstat(pszNativeDst, &DstStat)) 449 449 rc = errno != ENOENT ? RTErrConvertFromErrno(errno) : VINF_SUCCESS; 450 450 else if (S_ISDIR(DstStat.st_mode))
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器