]> err.no Git - systemd/commitdiff
socket: fix access mode verification of FIFOs
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Jul 2010 18:40:49 +0000 (20:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Jul 2010 18:40:49 +0000 (20:40 +0200)
src/socket.c

index 2c9d693918facc7794aec846434af1223255744d..b06ba093fbe07206ba0a416be1a424f6f1a48d4c 100644 (file)
@@ -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()) {