summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/ck-event-logger.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 3712cff..8d5d83b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -202,5 +202,3 @@ install-data-local:
-mkdir -p $(DESTDIR)$(libdir)/ConsoleKit/run-session.d
-mkdir -p $(DESTDIR)$(localstatedir)/run/ConsoleKit
-mkdir -p $(DESTDIR)$(localstatedir)/log/ConsoleKit
- -umask 022
- -touch $(DESTDIR)$(localstatedir)/log/ConsoleKit/history
diff --git a/src/ck-event-logger.c b/src/ck-event-logger.c
index 5e4a212..6bbc1d9 100644
--- a/src/ck-event-logger.c
+++ b/src/ck-event-logger.c
@@ -109,13 +109,14 @@ open_log_file (CkEventLogger *event_logger)
#endif
retry:
+ errno = 0;
fd = g_open (event_logger->priv->log_filename, flags, 0600);
if (fd < 0) {
if (errno == ENOENT) {
/* FIXME: should we just skip if file doesn't exist? */
fd = g_open (event_logger->priv->log_filename,
O_CREAT | O_EXCL | O_APPEND,
- S_IRUSR | S_IWUSR | S_IRGRP);
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IRGRP | S_IROTH);
if (fd < 0) {
g_warning ("Couldn't create log file %s (%s)",
event_logger->priv->log_filename,