Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2024-10-02 14:01:10 +01:00
3 changed files with 5 additions and 2 deletions

2
tmux.c
View File

@ -222,7 +222,7 @@ make_label(const char *label, char **cause)
xasprintf(cause, "%s is not a directory", base);
goto fail;
}
if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
if (sb.st_uid != uid || (sb.st_mode & TMUX_SOCK_PERM) != 0) {
xasprintf(cause, "directory %s has unsafe permissions", base);
goto fail;
}