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
This commit is contained in:
Timo Sirainen 2000-06-02 01:04:42 +00:00 committed by cras
commit 0e65ba80ca
2 changed files with 6 additions and 5 deletions

View file

@ -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)