From de0200fca558dcc4cfa785e46317ae9e6a879e04 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 20 Jul 2010 20:40:49 +0200 Subject: socket: fix access mode verification of FIFOs --- src/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) { -- cgit v1.2.3-54-g00ecf