We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b2319 commit 0990a5eCopy full SHA for 0990a5e
src/helper/UserSession.cpp
@@ -74,7 +74,8 @@ namespace SDDM {
74
bail(2);
75
if (setuid(pw->pw_uid) != 0)
76
77
- chdir(pw->pw_dir);
+ if (chdir(pw->pw_dir) != 0)
78
+ bail(2);
79
80
//we cannot use setStandardError file as this code is run in the child process
81
//we want to redirect after we setuid so that .xsession-errors is owned by the user
0 commit comments