Changeset 33763 in vbox
- Timestamp:
- Nov 4, 2010 12:48:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r33422 r33763 140 140 141 141 int rc = VINF_SUCCESS; 142 //bool fSeenInput = false;143 142 RTFILE hInput = NIL_RTFILE; 144 143 RTFILE hOutput = NIL_RTFILE; … … 152 151 case 'o': 153 152 rc = RTFileOpen(&hOutput, ValueUnion.psz, 154 RTFILE_O_CREATE_REPLACE | RTFILE_O_READWRITE | RTFILE_O_DENY_WRITE); 153 RTFILE_O_CREATE_REPLACE | 154 RTFILE_O_NOT_CONTENT_INDEXED | /* We don't need indexing here. */ 155 RTFILE_O_WRITE | 156 RTFILE_O_DENY_WRITE); 155 157 if (RT_FAILURE(rc)) 156 158 VBoxServiceError("Cat: Could not create output file \"%s\"! rc=%Rrc\n", … … 161 163 case VINF_GETOPT_NOT_OPTION: 162 164 { 163 /*rc = VBoxServiceToolboxCatInput(ValueUnion.psz, hOutput);164 if (RT_SUCCESS(rc))165 fSeenInput = true;*/166 167 165 rc = RTFileOpen(&hInput, ValueUnion.psz, 168 166 RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_WRITE); … … 178 176 } 179 177 180 if (RT_SUCCESS(rc) /*&& !fSeenInput*/)178 if (RT_SUCCESS(rc)) 181 179 rc = VBoxServiceToolboxCatOutput(hInput, hOutput); 182 180
Note:
See TracChangeset
for help on using the changeset viewer.

