Browse Source

Merge c9e3eebbe2 into 9afa3cacf9

pull/2986/merge
Wen Sun 3 months ago
committed by GitHub
parent
commit
532caf2e8a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. 3
      src/manager.c

3
src/manager.c

@ -1123,7 +1123,8 @@ main(int argc, char **argv)
if (workdir == NULL || strlen(workdir) == 0) {
workdir = pw->pw_dir;
// If home dir is still not defined or set to nologin/nonexistent, fall back to /tmp
if (workdir == NULL || strlen(workdir) == 0 || strstr(workdir, "nologin") || strstr(workdir, "nonexistent")) {
if (workdir == NULL || strlen(workdir) == 0 || strstr(workdir, "nologin") ||
strstr(workdir, "nonexistent") || strcmp(workdir, "/") == 0) {
workdir = "/tmp";
}

Loading…
Cancel
Save