The orig_umask value is now a mode_t.

This commit is contained in:
Wayne Davison
2006-02-24 01:56:26 +00:00
parent 904e5af128
commit c5b7aa1532
4 changed files with 5 additions and 5 deletions

4
log.c
View File

@@ -39,13 +39,13 @@ extern int local_server;
extern int quiet;
extern int module_id;
extern int msg_fd_out;
extern int orig_umask;
extern int allow_8bit_chars;
extern int protocol_version;
extern int preserve_times;
extern int log_format_has_i;
extern int log_format_has_o_or_i;
extern int daemon_log_format_has_o_or_i;
extern mode_t orig_umask;
extern char *auth_user;
extern char *log_format;
#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
@@ -144,7 +144,7 @@ static void syslog_init()
static void logfile_open(void)
{
int old_umask = umask(022 | orig_umask);
mode_t old_umask = umask(022 | orig_umask);
logfile = fopen(logfname, "a");
umask(old_umask);
if (!logfile) {