aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_save_contact.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 03:37:09 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 03:37:09 +0200
commitfff53aa3cc577d7e9633f07ad4729dbc5ce8b4df (patch)
tree9bdb0392c4a588cf9daa8e11b944ae7b0b90bee3 /libcontacts_save_contact.c
parentFix birthday support (diff)
downloadlibcontacts-fff53aa3cc577d7e9633f07ad4729dbc5ce8b4df.tar.gz
libcontacts-fff53aa3cc577d7e9633f07ad4729dbc5ce8b4df.tar.bz2
libcontacts-fff53aa3cc577d7e9633f07ad4729dbc5ce8b4df.tar.xz
Full relay on umask to remove permissions for other users
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_save_contact.c')
-rw-r--r--libcontacts_save_contact.c2
1 files changed, 1 insertions, 1 deletions
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++) {