Changeset 10644 in vbox for trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
- Timestamp:
- Jul 15, 2008 11:18:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r10634 r10644 164 164 return VERR_INVALID_PARAMETER; 165 165 } 166 /* Unix permissions */ 167 fOpenMode |= (fOpen & RTFILE_O_CREATE_MODE_MASK) >> RTFILE_O_CREATE_MODE_SHIFT; 166 167 /* File mode. */ 168 int fMode = (fOpen & RTFILE_O_CREATE_MODE_MASK) 169 ? (fOpen & RTFILE_O_CREATE_MODE_MASK) >> RTFILE_O_CREATE_MODE_SHIFT 170 : RT_FILE_PERMISSION; 168 171 169 172 /** @todo sharing! */ … … 173 176 */ 174 177 #ifdef RT_DONT_CONVERT_FILENAMES 175 int fh = open(pszFilename, fOpenMode, RT_FILE_PERMISSION);178 int fh = open(pszFilename, fOpenMode, fMode); 176 179 int iErr = errno; 177 180 #else … … 181 184 return (rc); 182 185 183 int fh = open(pszNativeFilename, fOpenMode, RT_FILE_PERMISSION);186 int fh = open(pszNativeFilename, fOpenMode, fMode); 184 187 int iErr = errno; 185 188 rtPathFreeNative(pszNativeFilename);
Note:
See TracChangeset
for help on using the changeset viewer.