diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-02-13 11:37:20 -0500 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2008-02-13 11:37:20 -0500 |
commit | 190aed4effbfb9a982f46250c82994f58f4e5fb5 (patch) | |
tree | 9d8d71afad032f56ac69d860ea8b745b635dea89 /src/ck-event-logger.c | |
parent | 6dda865f8fbe87a10a6047eb2db2c4fd1c94af17 (diff) |
create the log file with S_IROTH and don't touch the log on build
Diffstat (limited to 'src/ck-event-logger.c')
-rw-r--r-- | src/ck-event-logger.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |