儲存庫 vbox 的更動 65200
- 時間撮記:
- 2017-1-9 下午12:00:15 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r62527 r65200 329 329 { 330 330 LogFunc(("O_TRUNC set\n")); 331 params.CreateFlags |= ( SHFL_CF_ACT_OVERWRITE_IF_EXISTS 332 | SHFL_CF_ACCESS_WRITE); 331 params.CreateFlags |= SHFL_CF_ACT_OVERWRITE_IF_EXISTS; 333 332 } 334 333 else … … 341 340 { 342 341 LogFunc(("O_TRUNC set\n")); 343 params.CreateFlags |= ( SHFL_CF_ACT_OVERWRITE_IF_EXISTS 344 | SHFL_CF_ACCESS_WRITE); 342 params.CreateFlags |= SHFL_CF_ACT_OVERWRITE_IF_EXISTS; 345 343 } 346 344 } 347 345 348 if (!(params.CreateFlags & SHFL_CF_ACCESS_READWRITE)) 349 { 350 switch (file->f_flags & O_ACCMODE) 351 { 352 case O_RDONLY: 353 params.CreateFlags |= SHFL_CF_ACCESS_READ; 354 break; 355 356 case O_WRONLY: 357 params.CreateFlags |= SHFL_CF_ACCESS_WRITE; 358 break; 359 360 case O_RDWR: 361 params.CreateFlags |= SHFL_CF_ACCESS_READWRITE; 362 break; 363 364 default: 365 BUG (); 366 } 346 switch (file->f_flags & O_ACCMODE) 347 { 348 case O_RDONLY: 349 params.CreateFlags |= SHFL_CF_ACCESS_READ; 350 break; 351 352 case O_WRONLY: 353 params.CreateFlags |= SHFL_CF_ACCESS_WRITE; 354 break; 355 356 case O_RDWR: 357 params.CreateFlags |= SHFL_CF_ACCESS_READWRITE; 358 break; 359 360 default: 361 BUG (); 367 362 } 368 363
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器