Displaying 8 results from an estimated 8 matches for "syslog_facility_not_set".
2007 Sep 12
0
PATCH: fix incorrect checking of syslog facility in sftp-server
...t equal to -1 there. However, using incorrect facility will trigger
"Unrecognized internal syslog level code ..." in log_init() later though so
it will fail eventually as expected.
the incorrect code:
case 'f':
log_facility = log_facility_number(optarg);
if (log_level == SYSLOG_FACILITY_NOT_SET)
error("Invalid log facility \"%s\"", optarg);
break;
--- sftp-server.c Sun May 20 07:09:05 2007
+++ sftp-server.c.new Wed Sep 12 16:25:32 2007
@@ -1244,7 +1244,7 @@
break;
case 'f':
log_facil...
2002 Jun 05
1
Trailing comma in enum for 3.2.3p1
...RSARESPONSE, MONITOR_ANS_RSARESPONSE,
MONITOR_REQ_PAM_START,
- MONITOR_REQ_TERM,
+ MONITOR_REQ_TERM
};
struct mm_master;
--- log.h.orig Tue Jun 4 17:51:55 2002
+++ log.h Tue Jun 4 17:52:03 2002
@@ -33,7 +33,7 @@
SYSLOG_FACILITY_LOCAL5,
SYSLOG_FACILITY_LOCAL6,
SYSLOG_FACILITY_LOCAL7,
- SYSLOG_FACILITY_NOT_SET = -1,
+ SYSLOG_FACILITY_NOT_SET = -1
} SyslogFacility;
typedef enum {
@@ -45,7 +45,7 @@
SYSLOG_LEVEL_DEBUG1,
SYSLOG_LEVEL_DEBUG2,
SYSLOG_LEVEL_DEBUG3,
- SYSLOG_LEVEL_NOT_SET = -1,
+ SYSLOG_LEVEL_NOT_SET = -1
} LogLevel;
void log_init(char *, LogLevel, SyslogFacility, i...
2024 Apr 25
1
[PATCH] Enable ssh_config to set LogPath option (-E)
...= &options->log_path;
+ goto parse_string;
+
case oLocalForward:
case oRemoteForward:
case oDynamicForward:
@@ -2585,6 +2590,7 @@ initialize_options(Options * options)
options->num_permitted_remote_opens = 0;
options->log_facility = SYSLOG_FACILITY_NOT_SET;
options->log_level = SYSLOG_LEVEL_NOT_SET;
+ options->log_path = NULL;
options->num_log_verbose = 0;
options->log_verbose = NULL;
options->preferred_authentications = NULL;
diff --git a/readconf.h b/readconf.h
index 9447d5d6e..0137b6690 100644
-...
2002 Mar 26
1
Two patches for OpenSSH 3.1p1
...********
*** 706,719 ****
/*
* Force logging to stderr until we have loaded the private host
! * key (unless started from inetd)
*/
log_init(__progname,
options.log_level == SYSLOG_LEVEL_NOT_SET ?
SYSLOG_LEVEL_INFO : options.log_level,
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
SYSLOG_FACILITY_AUTH : options.log_facility,
! !inetd_flag);
#ifdef _CRAY
/* Cray can define user privs drop all prives now!
--- 713,726 ----
/*
* Force logging to stderr until we have loaded the private host
! * key (unless started from inetd or init)
*/
lo...
2007 Jun 18
0
[PATCH] sftp-server argument error handling
...vel_number(optarg);
if (log_level == SYSLOG_LEVEL_NOT_SET)
- error("Invalid log level \"%s\"", optarg);
+ fatal("Invalid log level \"%s\"", optarg);
break;
case 'f':
log_facility = log_facility_number(optarg);
if (log_level == SYSLOG_FACILITY_NOT_SET)
- error("Invalid log facility \"%s\"", optarg);
+ fatal("Invalid log facility \"%s\"", optarg);
break;
case 'h':
default:
Tony.
--
f.a.n.finch <dot at dotat.at> http://dotat.at/
HUMBER THAMES: SOUTHEASTERLY, VEERING SOUTHWES...
2007 Apr 10
6
[PATCH 0/6] openssh V_4_6: minor fixes/cleanups
This patch series consists of minor fixes and cleanups I made during
update to openssh V_4_6 branch.
openssh/auth-pam.c | 9 ++++-----
openssh/auth2.c | 2 --
openssh/readconf.c | 7 ++++---
openssh/servconf.c | 14 ++++++++------
openssh/sftp-server.c | 9 ++++++---
openssh/sshd.c | 2 +-
6 files changed, 23 insertions(+), 20 deletions(-)
--
ldv
2002 Dec 18
2
patch for openssh3.5p1 - adds logging option
...);
seed_rng();
diff -urN openssh-3.5p1-orig/sshd.c openssh-3.5p1/sshd.c
--- openssh-3.5p1-orig/sshd.c 2002-12-18 10:10:13.000000000 -0500
+++ openssh-3.5p1/sshd.c 2002-12-18 10:51:30.000000000 -0500
@@ -944,7 +944,7 @@
SYSLOG_LEVEL_INFO : options.log_level,
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
SYSLOG_FACILITY_AUTH : options.log_facility,
- !inetd_flag);
+ !inetd_flag, options.log_file);
#ifdef _UNICOS
/* Cray can define user privs drop all prives now!
@@ -1079,7 +1079,7 @@
/* Initialize the log (it is reinitialized below in case we forked). */
if (debug_flag &...
2007 Nov 11
1
ftp-server patch - restrict user to directory
...l, log_facility, log_stderr);
- while (!skipargs && (ch = getopt(argc, argv, "C:f:l:che")) != -1) {
+ while (!skipargs && (ch = getopt(argc, argv, "C:f:F:l:che")) != -1) {
switch (ch) {
case 'c':
/*
@@ -1247,12 +1428,18 @@
if (log_level == SYSLOG_FACILITY_NOT_SET)
error("Invalid log facility \"%s\"", optarg);
break;
+ case 'F':
+ config_file_name = optarg;
+ config_file_mandatory = 1; /* Since it is specified, it is a must */
+ break;
case 'h':
default:
usage();
}
}
+ load_sftp_config(conf...