diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-02 01:04:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-02 01:04:42 +0000 |
commit | 0e65ba80ca2b4f3a2a24feb6234f26c18feea71f (patch) | |
tree | 0942a653797b2f38df4ae7e3c0f8c6581aceb8bf /src/core/rawlog.c | |
parent | 3e4f94793465e1cbaf8bb229c0b93568228e225d (diff) | |
download | irssi-0e65ba80ca2b4f3a2a24feb6234f26c18feea71f.zip |
common-setup.h wasn't removed from here - Made rawlog to use
"log_create_mode" setting.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@273 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/rawlog.c')
-rw-r--r-- | src/core/rawlog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/rawlog.c b/src/core/rawlog.c index c67cd161..8193f26f 100644 --- a/src/core/rawlog.c +++ b/src/core/rawlog.c @@ -25,10 +25,10 @@ #include "misc.h" #include "settings.h" -#include "common-setup.h" static int rawlog_lines; static int signal_rawlog; +static int log_file_create_mode; RAWLOG_REC *rawlog_create(void) { @@ -113,7 +113,7 @@ void rawlog_open(RAWLOG_REC *rawlog, const char *fname) return; path = convert_home(fname); - rawlog->handle = open(path, O_WRONLY | O_APPEND | O_CREAT, LOG_FILE_CREATE_MODE); + rawlog->handle = open(path, O_WRONLY | O_APPEND | O_CREAT, log_file_create_mode); g_free(path); rawlog_dump(rawlog, rawlog->handle); @@ -134,7 +134,7 @@ void rawlog_save(RAWLOG_REC *rawlog, const char *fname) int f; path = convert_home(fname); - f = open(path, O_WRONLY | O_APPEND | O_CREAT, LOG_FILE_CREATE_MODE); + f = open(path, O_WRONLY | O_APPEND | O_CREAT, log_file_create_mode); g_free(path); rawlog_dump(rawlog, f); @@ -149,6 +149,7 @@ void rawlog_set_size(int lines) static void read_settings(void) { rawlog_set_size(settings_get_int("rawlog_lines")); + log_file_create_mode = octal2dec(settings_get_int("log_create_mode")); } void rawlog_init(void) |