summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index 2c9d693918..b06ba093fb 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -686,7 +686,7 @@ static int fifo_address_create(
}
if (!S_ISFIFO(st.st_mode) ||
- st.st_mode != (socket_mode & ~old_mask) ||
+ (st.st_mode & 0777) != (socket_mode & ~old_mask) ||
st.st_uid != getuid() ||
st.st_gid != getgid()) {