Changeset 34230 in vbox
- Timestamp:
- Nov 22, 2010 10:06:48 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/file.h
r33540 r34230 763 763 * @returns iprt status code. 764 764 * @param File Handle to the file. 765 * @param uid The new file owner user id. Use -1 (or ~0) to leave this unchanged. 766 * @param gid The new group id. Use -1 (or ~0) to leave this unchanged. 765 * @param uid The new file owner user id. Pass NIL_RTUID to leave 766 * this unchanged. 767 * @param gid The new group id. Pass NIL_RTGID to leave this 768 * unchanged. 767 769 */ 768 770 RTR3DECL(int) RTFileSetOwner(RTFILE File, uint32_t uid, uint32_t gid); -
trunk/include/iprt/path.h
r34214 r34230 811 811 * @returns iprt status code. 812 812 * @param pszPath Path to the file system object. 813 * @param uid The new file owner user id. Use -1 (or ~0) to leave this unchanged. 814 * @param gid The new group id. Use -1 (or ~0) to leave this unchanged. 813 * @param uid The new file owner user id. Pass NIL_RTUID to leave 814 * this unchanged. 815 * @param gid The new group id. Pass NIL_RTGUID to leave this 816 * unchanged. 815 817 */ 816 818 RTR3DECL(int) RTPathSetOwner(const char *pszPath, uint32_t uid, uint32_t gid); … … 821 823 * @returns iprt status code. 822 824 * @param pszPath Path to the file system object. 823 * @param uid The new file owner user id. Use -1 (or ~0) to leave this unchanged. 824 * @param gid The new group id. Use -1 (or ~0) to leave this unchanged. 825 * @param uid The new file owner user id. Pass NIL_RTUID to leave 826 * this unchanged. 827 * @param gid The new group id. Pass NIL_RTGID to leave this 828 * unchanged. 825 829 * @param fFlags RTPATH_F_ON_LINK or RTPATH_F_FOLLOW_LINK. 826 830 */ -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r33922 r34230 179 179 if (RT_SUCCESS(rc)) 180 180 { 181 rc = RTPathSetOwnerEx(pszMountPoint, ~0/* Owner, unchanged */, pOpts->gid, RTPATH_F_ON_LINK);181 rc = RTPathSetOwnerEx(pszMountPoint, NIL_RTUID /* Owner, unchanged */, pOpts->gid, RTPATH_F_ON_LINK); 182 182 if (RT_SUCCESS(rc)) 183 183 { -
trunk/src/VBox/Runtime/r3/posix/path2-posix.cpp
r34015 r34230 244 244 AssertReturn(*pszPath, VERR_INVALID_PARAMETER); 245 245 AssertMsgReturn(RTPATH_F_IS_VALID(fFlags, 0), ("%#x\n", fFlags), VERR_INVALID_PARAMETER); 246 uid_t uidNative = uid != UINT32_MAX? (uid_t)uid : (uid_t)-1;246 uid_t uidNative = uid != NIL_RTUID ? (uid_t)uid : (uid_t)-1; 247 247 AssertReturn(uid == uidNative, VERR_INVALID_PARAMETER); 248 gid_t gidNative = gid != UINT32_MAX? (gid_t)gid : (uid_t)-1;248 gid_t gidNative = gid != NIL_RTGID ? (gid_t)gid : (uid_t)-1; 249 249 AssertReturn(gid == gidNative, VERR_INVALID_PARAMETER); 250 250
Note:
See TracChangeset
for help on using the changeset viewer.