diff options
author | 2015-01-19 09:57:33 +0000 | |
---|---|---|
committer | 2015-01-19 09:57:33 +0000 | |
commit | 9945ad170f1278aaf81aaf6fa1648a3783fb1e40 (patch) | |
tree | 5c8147edb8bd65c44b39ec1f8cbc05cca5a48473 /usr.bin/tmux/tmux.c | |
parent | Remove unnecessary duplicate S_ISDIR check, from Dmitri Paduchikh. (diff) | |
download | wireguard-openbsd-9945ad170f1278aaf81aaf6fa1648a3783fb1e40.tar.xz wireguard-openbsd-9945ad170f1278aaf81aaf6fa1648a3783fb1e40.zip |
Only care about other permissions, allow group to be set.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index e3a09ceb75d..013f11a99e0 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.133 2015/01/19 09:53:15 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.134 2015/01/19 09:57:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -146,7 +146,7 @@ makesocketpath(const char *label) errno = ENOTDIR; return (NULL); } - if (sb.st_uid != uid || (sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) { + if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) { errno = EACCES; return (NULL); } |