summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-20 20:40:49 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-20 20:40:49 +0200
commitde0200fca558dcc4cfa785e46317ae9e6a879e04 (patch)
tree35b227ff1f57e739de8c0a5871ab98c85fc47600 /src/socket.c
parent8fe914ec81d9f57bcc083036f528b00119ed2e3b (diff)
socket: fix access mode verification of FIFOs
Diffstat (limited to 'src/socket.c')
-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()) {