Changeset 70889 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Feb 7, 2018 12:33:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstDir.cpp
r69753 r70889 46 46 bool fFiltered = false; 47 47 bool fQuiet = false; 48 bool fNoFollow = false; 48 49 for (int i = 1; i < argc; i++) 49 50 { … … 72 73 fQuiet = true; 73 74 break; 75 case 'H': 76 fNoFollow = true; 77 break; 74 78 default: 75 79 RTPrintf("Unknown option '%c' ignored!\n", argv[i][j]); … … 83 87 RTDIR hDir; 84 88 int rc; 85 if (!fFiltered )89 if (!fFiltered && !fNoFollow) 86 90 rc = RTDirOpen(&hDir, argv[i]); 87 91 else 88 rc = RTDirOpenFiltered(&hDir, argv[i], RTDIRFILTER_WINNT, 0 /*fFlags*/); 92 rc = RTDirOpenFiltered(&hDir, argv[i], fFiltered ? RTDIRFILTER_WINNT : RTDIRFILTER_NONE, 93 fNoFollow ? RTDIR_F_NO_FOLLOW : 0); 89 94 if (RT_SUCCESS(rc)) 90 95 {
Note:
See TracChangeset
for help on using the changeset viewer.