From fff53aa3cc577d7e9633f07ad4729dbc5ce8b4df Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 4 Apr 2021 03:37:09 +0200 Subject: Full relay on umask to remove permissions for other users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcontacts_save_contact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontacts_save_contact.c b/libcontacts_save_contact.c index b82a485..2e64c4a 100644 --- a/libcontacts_save_contact.c +++ b/libcontacts_save_contact.c @@ -51,7 +51,7 @@ libcontacts_save_contact(struct libcontacts_contact *contact, const struct passw tmppath = alloca(strlen(path) + sizeof("~")); stpcpy(stpcpy(tmppath, path), "~"); - fd = open(tmppath, oflags, 0644); + fd = open(tmppath, oflags, 0666); if (fd < 0) { if ((oflags & O_EXCL) && errno == EEXIST) { if (!num++) { -- cgit v1.2.3-70-g09d2