Changeset 86318 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Sep 28, 2020 12:33:34 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 140604
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp
r84609 r86318 162 162 unsigned cHeads) 163 163 { 164 uid_t guid = getuid();165 if (setreuid(0, 0) == -1)164 uid_t curuid = getuid(); 165 if (setreuid(0, 0) != 0) 166 166 perror("setreuid failed during drm ioctl."); 167 167 int rc; … … 176 176 if (RT_FAILURE(rc) && rc != VERR_INVALID_PARAMETER) 177 177 VBClLogFatalError("Failure updating layout, rc=%Rrc\n", rc); 178 setreuid(guid, 0); 178 if (setreuid(curuid, 0) != 0) 179 perror("reset of setreuid failed after drm ioctl."); 179 180 } 180 181
Note:
See TracChangeset
for help on using the changeset viewer.