diff options
author | Petr Cech <pcech@redhat.com> | 2015-10-05 09:38:10 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-10-14 13:27:02 +0200 |
commit | c299f997e20011536e365bc18e59e73f68629d2c (patch) | |
tree | f71f9668d0b2491239d816cdcf96161d09d65814 /src/util/debug.c | |
parent | fb8985a3a3a267940760967beaf8af3979ce91ea (diff) | |
download | sssd-c299f997e20011536e365bc18e59e73f68629d2c.tar.gz sssd-c299f997e20011536e365bc18e59e73f68629d2c.tar.xz sssd-c299f997e20011536e365bc18e59e73f68629d2c.zip |
REFACTOR: umask(0177) --> umask(SSS_DFL_UMASK)
There are many calls of umask function with 0177 argument. This patch
add new constant SSS_DFL_UMASK which stands for 0177. So all occurences
of umask(0177) (except responder code) are replaced by constant
SSS_DFL_UMASK.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util/debug.c')
-rw-r--r-- | src/util/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/debug.c b/src/util/debug.c index 69df54386..bd13fdecd 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -362,7 +362,7 @@ int open_debug_file_ex(const char *filename, FILE **filep, bool want_cloexec) if (debug_file && !filep) fclose(debug_file); - old_umask = umask(0177); + old_umask = umask(SSS_DFL_UMASK); errno = 0; f = fopen(logpath, "a"); if (f == NULL) { |