summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-01-19 09:53:15 +0000
committernicm <nicm@openbsd.org>2015-01-19 09:53:15 +0000
commitec58ad29aadd2c10fdaa26020f47d4eee5145c46 (patch)
treee073173320d53f3ef8a517f331aacfdcad23780a /usr.bin/tmux/tmux.c
parentadd a specialized version of version compares that should not update (diff)
downloadwireguard-openbsd-ec58ad29aadd2c10fdaa26020f47d4eee5145c46.tar.xz
wireguard-openbsd-ec58ad29aadd2c10fdaa26020f47d4eee5145c46.zip
Remove unnecessary duplicate S_ISDIR check, from Dmitri Paduchikh.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 5aad6f1f9ae..e3a09ceb75d 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.132 2014/10/20 23:27:14 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.133 2015/01/19 09:53:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -146,8 +146,7 @@ makesocketpath(const char *label)
errno = ENOTDIR;
return (NULL);
}
- if (sb.st_uid != uid || (!S_ISDIR(sb.st_mode) &&
- sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
+ if (sb.st_uid != uid || (sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
errno = EACCES;
return (NULL);
}