[glib/glib-2-64: 4/7] gdbusauthmechanismsha1: Fix keyring lock file permissions



commit a0689d21e4a0429d81119e99c586e1a77c4d5e2b
Author: Philip Withnall <withnall endlessm com>
Date:   Tue May 5 15:01:07 2020 +0100

    gdbusauthmechanismsha1: Fix keyring lock file permissions
    
    Why should it have the sticky bit set? dbus.git sets permissions 0600;
    so should GLib.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/gdbusauthmechanismsha1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index 7305f8df8..0d58b1321 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -518,7 +518,7 @@ keyring_acquire_lock (const gchar  *path,
 #else
                 0,
 #endif
-                0700);
+                0600);
   errsv = errno;
   if (ret == -1)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]