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