Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2016-07-07 12:01:11 +01:00
commit 2d843b5021

View File

@ -260,7 +260,7 @@ server_update_socket(void)
if (stat(socket_path, &sb) != 0)
return;
mode = sb.st_mode;
mode = sb.st_mode & ACCESSPERMS;
if (n != 0) {
if (mode & S_IRUSR)
mode |= S_IXUSR;