From: Lennart Poettering Date: Tue, 20 Jul 2010 18:40:49 +0000 (+0200) Subject: socket: fix access mode verification of FIFOs X-Git-Tag: v4~27 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0200fca558dcc4cfa785e46317ae9e6a879e04;p=systemd socket: fix access mode verification of FIFOs --- diff --git a/src/socket.c b/src/socket.c index 2c9d6939..b06ba093 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()) {