summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2015-10-21 08:27:37 -0400
committerLukas Slebodnik <lslebodn@redhat.com>2015-11-05 16:07:59 +0100
commit691387507c256e49845d4ca2a7bd558a2b41e4bb (patch)
treeeffc5996d8e0d8b24ae82309c62a5a2b648922bf
parent56e067109659886408789c936d37c1e86fe46695 (diff)
downloadsssd-691387507c256e49845d4ca2a7bd558a2b41e4bb.tar.gz
sssd-691387507c256e49845d4ca2a7bd558a2b41e4bb.tar.xz
sssd-691387507c256e49845d4ca2a7bd558a2b41e4bb.zip
TOOLS: DFL_UMASK --> SSS_DFL_UMASK
We could use SSS_DFL_UMASK instead of DFL_UMASK. Resolves: https://fedorahosted.org/sssd/ticket/2424 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/tools/sss_sync_ops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index e6faedcae..5468929b6 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -31,7 +31,6 @@
#define DFL_BASEDIR_VAL "/home"
#define DFL_CREATE_HOMEDIR true
#define DFL_REMOVE_HOMEDIR true
-#define DFL_UMASK 077
#define DFL_SKEL_DIR "/etc/skel"
#define DFL_MAIL_DIR "/var/spool/mail"
@@ -524,7 +523,7 @@ int useradd_defaults(TALLOC_CTX *mem_ctx,
/* umask to create homedirs */
ret = confdb_get_int(confdb,
conf_path, CONFDB_LOCAL_UMASK,
- DFL_UMASK, (int *) &data->umask);
+ SSS_DFL_UMASK, (int *) &data->umask);
if (ret != EOK) {
goto done;
}