VirtualBox

Changeset 31406 in vbox


Ignore:
Timestamp:
Aug 5, 2010 1:07:40 PM (14 years ago)
Author:
vboxsync
Message:

RTPathSetMode/posix: No need to use realpath.

File:
1 edited

Legend:

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

    r31309 r31406  
    661661        if (RT_SUCCESS(rc))
    662662        {
    663             char szRealPath[RTPATH_MAX];
    664             rc = RTPathReal(pszPath, szRealPath, sizeof(szRealPath));
    665             if (RT_SUCCESS(rc))
    666             {
    667                 if (chmod(szRealPath, fMode & RTFS_UNIX_MASK) < 0)
    668                     rc = RTErrConvertFromErrno(errno);
    669             }
     663            if (chmod(pszNativePath, fMode & RTFS_UNIX_MASK) != 0)
     664                rc = RTErrConvertFromErrno(errno);
    670665            rtPathFreeNative(pszNativePath, pszPath);
    671666        }
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