From 4230e6faa907b693ccf66b3a29f9be57b87aab14 Mon Sep 17 00:00:00 2001 From: Petr Cech Date: Tue, 6 Oct 2015 08:29:06 -0400 Subject: UTIL-TESTS: More restrictive permissions This test suite tries to write into and to read from temp. files. There is no reason to have executable permission. So this patch replaces SSS_DFL_X_UMASK with SSS_DFL_UMASK. Resolves: https://fedorahosted.org/sssd/ticket/2424 Reviewed-by: Jakub Hrozek --- src/tests/util-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/util-tests.c b/src/tests/util-tests.c index 88c6727d4..df4cf969f 100644 --- a/src/tests/util-tests.c +++ b/src/tests/util-tests.c @@ -593,7 +593,7 @@ void setup_atomicio(void) fail_unless(filename != NULL, "strdup failed"); atio_fd = -1; - old_umask = umask(SSS_DFL_X_UMASK); + old_umask = umask(SSS_DFL_UMASK); ret = mkstemp(filename); umask(old_umask); fail_unless(ret != -1, "mkstemp failed [%d][%s]", errno, strerror(errno)); -- cgit