Changeset 44298 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 15, 2013 2:54:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r43363 r44298 712 712 713 713 714 RTDECL(int) RTFileSetOwner(RTFILE hFile, uint32_t uid, uint32_t gid) 715 { 716 uid_t uidNative = uid != NIL_RTUID ? (uid_t)uid : (uid_t)-1; 717 AssertReturn(uid == uidNative, VERR_INVALID_PARAMETER); 718 gid_t gidNative = gid != NIL_RTGID ? (gid_t)gid : (gid_t)-1; 719 AssertReturn(gid == gidNative, VERR_INVALID_PARAMETER); 720 721 if (fchown(RTFileToNative(hFile), uidNative, gidNative)) 722 return RTErrConvertFromErrno(errno); 723 return VINF_SUCCESS; 724 } 725 726 714 727 RTR3DECL(int) RTFileRename(const char *pszSrc, const char *pszDst, unsigned fRename) 715 728 {
Note:
See TracChangeset
for help on using the changeset viewer.