[glib/wip/pwithnall/1954-dbus-keyring-handling: 7/9] gdbusauthmechanismsha1: Fix keyring lock file permissions
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/1954-dbus-keyring-handling: 7/9] gdbusauthmechanismsha1: Fix keyring lock file permissions
- Date: Tue, 5 May 2020 15:08:13 +0000 (UTC)
commit d6bab031502ae99c182c5e1f71f4662346d93864
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]