diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2011-08-13 14:35:31 +0300 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-08-15 09:41:56 +0100 |
commit | dccbefa394f16d3bd8e88526bf9b565ae9f1289e (patch) | |
tree | d5b30ba8e058f4278a527081a1e8cd31991a977b | |
parent | 2f55da5baa0323af76510fd07c540f6dafcf1ac0 (diff) |
daemon-conf: Don't make log files executable.
-rw-r--r-- | src/daemon/daemon-conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c index 1f70b092..c4ee544a 100644 --- a/src/daemon/daemon-conf.c +++ b/src/daemon/daemon-conf.c @@ -194,7 +194,7 @@ int pa_daemon_conf_set_log_target(pa_daemon_conf *c, const char *string) { pa_strlcpy(file_path, string + 5, sizeof(file_path)); /* Open target file with user rights */ - if ((log_fd = open(file_path, O_RDWR|O_TRUNC|O_CREAT, S_IRWXU)) >= 0) { + if ((log_fd = open(file_path, O_RDWR|O_TRUNC|O_CREAT, S_IRUSR | S_IWUSR)) >= 0) { c->auto_log_target = 0; c->log_target = PA_LOG_FD; pa_log_set_fd(log_fd); |