diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-20 20:40:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-20 20:40:49 +0200 |
commit | de0200fca558dcc4cfa785e46317ae9e6a879e04 (patch) | |
tree | 35b227ff1f57e739de8c0a5871ab98c85fc47600 | |
parent | 8fe914ec81d9f57bcc083036f528b00119ed2e3b (diff) |
socket: fix access mode verification of FIFOs
-rw-r--r-- | src/socket.c | 2 |
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()) { |