Changeset 93451 in vbox for trunk/src/VBox
- Timestamp:
- Jan 26, 2022 8:00:17 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149563
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp
r93115 r93451 44 44 #include <iprt/string.h> 45 45 #include <iprt/time.h> 46 #include <iprt/path.h> 46 47 47 48 #include <sys/types.h> … … 295 296 LogRel(("RTLocalIpcServerGrantGroupAccess: cannot change IPC socket %s group ownership to %RTgid: errno=%d\n", 296 297 pThis->Name.sun_path, gid, errno)); 298 return RTErrConvertFromErrno(errno); 299 } 300 301 302 RTDECL(int) RTLocalIpcServerSetAccessMode(RTLOCALIPCSERVER hServer, RTFMODE fMode) 303 { 304 PRTLOCALIPCSERVERINT pThis = (PRTLOCALIPCSERVERINT)hServer; 305 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 306 AssertReturn(pThis->u32Magic == RTLOCALIPCSERVER_MAGIC, VERR_INVALID_HANDLE); 307 AssertReturn(pThis->Name.sun_path[0] != '\0', VERR_INVALID_STATE); 308 309 if (chmod(pThis->Name.sun_path, fMode & RTFS_UNIX_ALL_ACCESS_PERMS) == 0) 310 return VINF_SUCCESS; 311 297 312 return RTErrConvertFromErrno(errno); 298 313 }
Note:
See TracChangeset
for help on using the changeset viewer.