diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-04 03:37:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-04 03:37:09 +0200 |
commit | fff53aa3cc577d7e9633f07ad4729dbc5ce8b4df (patch) | |
tree | 9bdb0392c4a588cf9daa8e11b944ae7b0b90bee3 | |
parent | Fix birthday support (diff) | |
download | libcontacts-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>
-rw-r--r-- | libcontacts_save_contact.c | 2 |
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++) { |