]> andersk Git - openssh.git/commitdiff
20010108
authormouring <mouring>
Mon, 8 Jan 2001 06:13:41 +0000 (06:13 +0000)
committermouring <mouring>
Mon, 8 Jan 2001 06:13:41 +0000 (06:13 +0000)
 - (bal) Fixed another typo in cli.c
 - (bal) OpenBSD Sync
   - markus@cvs.openbsd.org 2001/01/07 21:26:55
     [cli.c]
     typo
   - markus@cvs.openbsd.org 2001/01/07 21:26:55
     [cli.c]
     missing free, stevesk@pobox.com
   - markus@cvs.openbsd.org 2001/01/07 19:06:25
     [auth1.c]
     missing free, stevesk@pobox.com
   - markus@cvs.openbsd.org 2001/01/07 11:28:04
     [log-client.c log-server.c log.c readconf.c servconf.c ssh.1
      ssh.h sshd.8 sshd.c]
     rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE
     syslog priority changes:
             fatal() LOG_ERR  -> LOG_CRIT
             log()   LOG_INFO -> LOG_NOTICE

12 files changed:
ChangeLog
auth1.c
cli.c
log-client.c
log-server.c
log.c
readconf.c
servconf.c
ssh.1
ssh.h
sshd.8
sshd.c

index e754c9002b1d34da8d0d514c0bc625a47c9d04f5..27cedf3679e25fdd1715e97c9c72d297f972a9fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+20010108
+ - (bal) Fixed another typo in cli.c
+ - (bal) OpenBSD Sync
+   - markus@cvs.openbsd.org 2001/01/07 21:26:55
+     [cli.c]
+     typo
+   - markus@cvs.openbsd.org 2001/01/07 21:26:55
+     [cli.c]
+     missing free, stevesk@pobox.com
+   - markus@cvs.openbsd.org 2001/01/07 19:06:25
+     [auth1.c]
+     missing free, stevesk@pobox.com
+   - markus@cvs.openbsd.org 2001/01/07 11:28:04
+     [log-client.c log-server.c log.c readconf.c servconf.c ssh.1
+      ssh.h sshd.8 sshd.c]
+     rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE
+     syslog priority changes:
+             fatal() LOG_ERR  -> LOG_CRIT
+             log()   LOG_INFO -> LOG_NOTICE
+
 20010107
  - (bal) OpenBSD Sync
    - markus@cvs.openbsd.org 2001/01/06 11:23:27
diff --git a/auth1.c b/auth1.c
index 26472e02026343a01ef043a1cd4a53f53549ddad..5e9b3aa5b4155baadf9b4ec74dd34ba38ae5bb46 100644 (file)
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.9 2000/12/27 12:34:49 markus Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.10 2001/01/07 19:06:25 markus Exp $");
 
 #ifdef HAVE_OSF_SIA
 # include <sia.h>
@@ -479,6 +479,7 @@ do_authentication()
        packet_start(SSH_SMSG_SUCCESS);
        packet_send();
        packet_write_wait();
+       xfree(user);
 
 #ifdef WITH_AIXAUTHENTICATE
        /* We don't have a pty yet, so just label the line as "ssh" */
diff --git a/cli.c b/cli.c
index 27d0d9e18cbc861b48ab746f24bad94527f7e334..d2ef174c6881b8a5c770ca58da8baefcd6455680 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -1,5 +1,5 @@
 #include "includes.h"
-RCSID("$OpenBSD: cli.c,v 1.2 2000/10/16 09:38:44 djm Exp $");
+RCSID("$OpenBSD: cli.c,v 1.4 2001/01/07 21:26:55 markus Exp $");
 
 #include "xmalloc.h"
 #include "ssh.h"
@@ -145,9 +145,12 @@ cli_write(char* buf, int size)
 
        for (pos = 0; pos < len; pos += ret) {
                ret = write(cli_output, output + pos, len - pos);
-               if (ret == -1)
+               if (ret == -1) {
+                       xfree(output);
                        return -1;
+               }
        }
+       xfree(output);
        return 0;
 }
 
index 505c8c33787a7dae19a1004aa233185133262fa2..bfcab30ba625b08fcba6664243121186b2a30ab3 100644 (file)
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: log-client.c,v 1.12 2000/09/12 20:53:10 markus Exp $");
+RCSID("$OpenBSD: log-client.c,v 1.13 2001/01/07 11:28:04 markus Exp $");
 
 #include "xmalloc.h"
 #include "ssh.h"
 
-static LogLevel log_level = SYSLOG_LEVEL_INFO;
+static LogLevel log_level = SYSLOG_LEVEL_NOTICE;
 
 /* Initialize the log.
  *   av0       program name (should be argv[0])
@@ -53,9 +53,9 @@ log_init(char *av0, LogLevel level, SyslogFacility ignored1, int ignored2)
 {
        switch (level) {
        case SYSLOG_LEVEL_QUIET:
-       case SYSLOG_LEVEL_ERROR:
        case SYSLOG_LEVEL_FATAL:
-       case SYSLOG_LEVEL_INFO:
+       case SYSLOG_LEVEL_ERROR:
+       case SYSLOG_LEVEL_NOTICE:
        case SYSLOG_LEVEL_VERBOSE:
        case SYSLOG_LEVEL_DEBUG1:
        case SYSLOG_LEVEL_DEBUG2:
index 943c314179864bf0ed1cf138ba5a5e3ffe0bf13b..2335a3ef4900bebc082ad1113e8a84e888fbd646 100644 (file)
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: log-server.c,v 1.17 2000/09/12 20:53:10 markus Exp $");
+RCSID("$OpenBSD: log-server.c,v 1.18 2001/01/07 11:28:05 markus Exp $");
 
 #include <syslog.h>
 #include "packet.h"
 #include "xmalloc.h"
 #include "ssh.h"
 
-static LogLevel log_level = SYSLOG_LEVEL_INFO;
+static LogLevel log_level = SYSLOG_LEVEL_NOTICE;
 static int log_on_stderr = 0;
 static int log_facility = LOG_AUTH;
 
@@ -58,9 +58,9 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
 {
        switch (level) {
        case SYSLOG_LEVEL_QUIET:
-       case SYSLOG_LEVEL_ERROR:
        case SYSLOG_LEVEL_FATAL:
-       case SYSLOG_LEVEL_INFO:
+       case SYSLOG_LEVEL_ERROR:
+       case SYSLOG_LEVEL_NOTICE:
        case SYSLOG_LEVEL_VERBOSE:
        case SYSLOG_LEVEL_DEBUG1:
        case SYSLOG_LEVEL_DEBUG2:
@@ -133,15 +133,17 @@ do_log(LogLevel level, const char *fmt, va_list args)
        if (level > log_level)
                return;
        switch (level) {
+       case SYSLOG_LEVEL_FATAL:
+               txt = "fatal";
+               pri = LOG_CRIT;
+               break;
        case SYSLOG_LEVEL_ERROR:
                txt = "error";
                pri = LOG_ERR;
                break;
-       case SYSLOG_LEVEL_FATAL:
-               txt = "fatal";
-               pri = LOG_ERR;
+       case SYSLOG_LEVEL_NOTICE:
+               pri = LOG_NOTICE;
                break;
-       case SYSLOG_LEVEL_INFO:
        case SYSLOG_LEVEL_VERBOSE:
                pri = LOG_INFO;
                break;
diff --git a/log.c b/log.c
index 896bd239268e3ec666571c50246840b362d66440..e13cc90ceb3d41978f1b303d97315703beb5cb0a 100644 (file)
--- a/log.c
+++ b/log.c
@@ -36,7 +36,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.12 2000/12/19 23:17:57 markus Exp $");
+RCSID("$OpenBSD: log.c,v 1.13 2001/01/07 11:28:05 markus Exp $");
 
 #include "ssh.h"
 #include "xmalloc.h"
@@ -71,7 +71,7 @@ log(const char *fmt,...)
 {
        va_list args;
        va_start(args, fmt);
-       do_log(SYSLOG_LEVEL_INFO, fmt, args);
+       do_log(SYSLOG_LEVEL_NOTICE, fmt, args);
        va_end(args);
 }
 
@@ -209,12 +209,13 @@ static struct {
        { "QUIET",      SYSLOG_LEVEL_QUIET },
        { "FATAL",      SYSLOG_LEVEL_FATAL },
        { "ERROR",      SYSLOG_LEVEL_ERROR },
-       { "INFO",       SYSLOG_LEVEL_INFO },
+       { "NOTICE",     SYSLOG_LEVEL_NOTICE },
        { "VERBOSE",    SYSLOG_LEVEL_VERBOSE },
        { "DEBUG",      SYSLOG_LEVEL_DEBUG1 },
        { "DEBUG1",     SYSLOG_LEVEL_DEBUG1 },
        { "DEBUG2",     SYSLOG_LEVEL_DEBUG2 },
        { "DEBUG3",     SYSLOG_LEVEL_DEBUG3 },
+       { "INFO",       SYSLOG_LEVEL_NOTICE },  /* backward compatible */
        { NULL, 0 }
 };
 
index d90ba37bbba53dba00d6cc73e3d61287284fd8bd..5b552815ff8dbc0c109ce4a9efcc5a67bfe0cee3 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.52 2000/12/27 12:30:19 markus Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.53 2001/01/07 11:28:05 markus Exp $");
 
 #include "ssh.h"
 #include "readconf.h"
@@ -804,7 +804,7 @@ fill_default_options(Options * options)
        if (options->user_hostfile2 == NULL)
                options->user_hostfile2 = SSH_USER_HOSTFILE2;
        if (options->log_level == (LogLevel) - 1)
-               options->log_level = SYSLOG_LEVEL_INFO;
+               options->log_level = SYSLOG_LEVEL_NOTICE;
        /* options->proxy_command should not be set by default */
        /* options->user will be set in the main program if appropriate */
        /* options->hostname will be set in the main program if appropriate */
index 8dd6e7d88973a4ecb6968661fa14d5c25bd34db1..6604e3d23498b3f9446cd2189a1ef1a9b60b71b7 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: servconf.c,v 1.55 2000/12/19 23:17:57 markus Exp $");
+RCSID("$OpenBSD: servconf.c,v 1.56 2001/01/07 11:28:06 markus Exp $");
 
 #include "ssh.h"
 #include "servconf.h"
@@ -129,7 +129,7 @@ fill_default_server_options(ServerOptions *options)
        if (options->log_facility == (SyslogFacility) (-1))
                options->log_facility = SYSLOG_FACILITY_AUTH;
        if (options->log_level == (LogLevel) (-1))
-               options->log_level = SYSLOG_LEVEL_INFO;
+               options->log_level = SYSLOG_LEVEL_NOTICE;
        if (options->rhosts_authentication == -1)
                options->rhosts_authentication = 0;
        if (options->rhosts_rsa_authentication == -1)
diff --git a/ssh.1 b/ssh.1
index f25c29987217559d29dfc588262728f698e790c9..59cc7f180496ecbc093e83e54377b64231db1adb 100644 (file)
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $OpenBSD: ssh.1,v 1.75 2001/01/04 22:35:32 djm Exp $
+.\" $OpenBSD: ssh.1,v 1.76 2001/01/07 11:28:06 markus Exp $
 .Dd September 25, 1999
 .Dt SSH 1
 .Os
@@ -814,8 +814,8 @@ Only the superuser can forward privileged ports.
 Gives the verbosity level that is used when logging messages from
 .Nm ssh .
 The possible values are:
-QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
-The default is INFO.
+QUIET, FATAL, ERROR, NOTICE, VERBOSE and DEBUG.
+The default is NOTICE.
 .It Cm NumberOfPasswordPrompts
 Specifies the number of password prompts before giving up.
 The argument to this keyword must be an integer.
diff --git a/ssh.h b/ssh.h
index 5300067920fbe41479287ece7dc1894fc6933fac..27575c2987f62ad6408f3e8de82580284b5313ef 100644 (file)
--- a/ssh.h
+++ b/ssh.h
@@ -12,7 +12,7 @@
  * called by a name other than "ssh" or "Secure Shell".
  */
 
-/* RCSID("$OpenBSD: ssh.h,v 1.56 2000/12/19 23:17:58 markus Exp $"); */
+/* RCSID("$OpenBSD: ssh.h,v 1.57 2001/01/07 11:28:06 markus Exp $"); */
 
 #ifndef SSH_H
 #define SSH_H
@@ -445,7 +445,7 @@ typedef enum {
        SYSLOG_LEVEL_QUIET,
        SYSLOG_LEVEL_FATAL,
        SYSLOG_LEVEL_ERROR,
-       SYSLOG_LEVEL_INFO,
+       SYSLOG_LEVEL_NOTICE,
        SYSLOG_LEVEL_VERBOSE,
        SYSLOG_LEVEL_DEBUG1,
        SYSLOG_LEVEL_DEBUG2,
diff --git a/sshd.8 b/sshd.8
index 6078216b98c3a26cea2b762041e764342a51aced..d6232f4b253c19d77af201e42899db00c128fc7d 100644 (file)
--- a/sshd.8
+++ b/sshd.8
@@ -34,7 +34,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $OpenBSD: sshd.8,v 1.78 2001/01/04 22:35:32 djm Exp $
+.\" $OpenBSD: sshd.8,v 1.79 2001/01/07 11:28:07 markus Exp $
 .Dd September 25, 1999
 .Dt SSHD 8
 .Os
@@ -492,8 +492,8 @@ The default is 600 (seconds).
 Gives the verbosity level that is used when logging messages from
 .Nm sshd .
 The possible values are:
-QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
-The default is INFO.
+QUIET, FATAL, ERROR, NOTICE, VERBOSE and DEBUG.
+The default is NOTICE.
 Logging with level DEBUG violates the privacy of users
 and is not recommended.
 .It Cm MaxStartups
diff --git a/sshd.c b/sshd.c
index 9b309b8918668d1edc621c0efdd83cb53c34cbd5..aa7e016bfe8fd4cd2c1f8629d958659e2325792f 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.145 2001/01/04 22:25:58 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.146 2001/01/07 11:28:07 markus Exp $");
 
 #include "xmalloc.h"
 #include "rsa.h"
@@ -673,7 +673,7 @@ main(int ac, char **av)
         * key (unless started from inetd)
         */
        log_init(__progname,
-           options.log_level == -1 ? SYSLOG_LEVEL_INFO : options.log_level,
+           options.log_level == -1 ? SYSLOG_LEVEL_NOTICE : options.log_level,
            options.log_facility == -1 ? SYSLOG_FACILITY_AUTH : options.log_facility,
            !silent && !inetd_flag);
 
This page took 0.08421 seconds and 5 git commands to generate.