aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_save_contact.c
diff options
context:
space:
mode:
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++) {