summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2015-10-05 10:12:36 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-10-14 13:27:13 +0200
commitf8e337540d280f944098cd4dd7d670e2f7166b54 (patch)
tree1f1745c2a6859e968f2431a25c0f9d1f2f915764 /src/providers
parentd9c2a21119a6d04203060ad54fa8d20f17f5c0b7 (diff)
downloadsssd-f8e337540d280f944098cd4dd7d670e2f7166b54.tar.gz
sssd-f8e337540d280f944098cd4dd7d670e2f7166b54.tar.xz
sssd-f8e337540d280f944098cd4dd7d670e2f7166b54.zip
REFACTOR: umask(077) --> umask(SSS_DFL_X_UMASK)
There are many calls of umask function with 077 argument. This patch add new constant SSS_DFL_X_UMASK which stands fot 077. So all occurences of umask(077) are replaced by constant SSS_DFL_X_UMASK. Resolves: https://fedorahosted.org/sssd/ticket/2424 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/krb5/krb5_child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 1edf10ab8..69b768718 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -720,7 +720,7 @@ static krb5_error_code create_ccache(char *ccname, krb5_creds *creds)
#endif
/* Set a restrictive umask, just in case we end up creating any file */
- umask(077);
+ umask(SSS_DFL_X_UMASK);
/* we create a new context here as the main process one may have been
* opened as root and contain possibly references (even open handles ?)