VirtualBox

Changeset 34230 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Nov 22, 2010 10:06:48 AM (14 years ago)
Author:
vboxsync
Message:

iprt,VBoxServiceAutoMount.cpp: RTPathSetOwner[Ex] should take NIL_RTUID/GID not -1 / ~0, the only excuse is that NIL_RT[UG]ID probably didn't exist when it was written. Ditto for the RTFileSetOwner API (not realized yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/path2-posix.cpp

    r34015 r34230  
    244244    AssertReturn(*pszPath, VERR_INVALID_PARAMETER);
    245245    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;
    247247    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;
    249249    AssertReturn(gid == gidNative, VERR_INVALID_PARAMETER);
    250250
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette