blob: 32e1d2e4512dafbbfb91a57e6441031d7dfe0e82 [file] [log] [blame]
Darren Tuckerdbee3082013-05-16 20:32:29 +10001/* $OpenBSD: log.c,v 1.45 2013/05/16 09:08:41 dtucker Exp $ */
Damien Miller5ce662a1999-11-11 17:57:39 +11002/*
Damien Millere4340be2000-09-16 13:29:08 +11003 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved
6 *
7 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
12 */
13/*
Damien Millere4340be2000-09-16 13:29:08 +110014 * Copyright (c) 2000 Markus Friedl. All rights reserved.
15 *
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions
18 * are met:
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
26 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
27 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
30 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Damien Miller5428f641999-11-25 11:54:57 +110035 */
Damien Miller5ce662a1999-11-11 17:57:39 +110036
37#include "includes.h"
Damien Miller5ce662a1999-11-11 17:57:39 +110038
Damien Millerd7834352006-08-05 12:39:39 +100039#include <sys/types.h>
40
Damien Miller03d4d7e2013-04-23 15:21:06 +100041#include <fcntl.h>
Darren Tucker5d196262006-07-12 22:15:16 +100042#include <stdarg.h>
Damien Millera7a73ee2006-08-05 11:37:59 +100043#include <stdio.h>
Damien Millere7a1e5c2006-08-05 11:34:19 +100044#include <stdlib.h>
Damien Millere3476ed2006-07-24 14:13:33 +100045#include <string.h>
Ben Lindstrom8a432f52001-03-05 07:24:46 +000046#include <syslog.h>
Damien Millere6b3b612006-07-24 14:01:23 +100047#include <unistd.h>
Darren Tucker36b78002007-05-20 15:08:15 +100048#include <errno.h>
Damien Miller63b4bcd2013-03-20 12:55:14 +110049#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
Damien Miller5c3a5582003-09-23 22:12:38 +100050# include <vis.h>
51#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +000052
Damien Miller194a1cb2006-07-10 21:09:22 +100053#include "xmalloc.h"
Damien Millerd7834352006-08-05 12:39:39 +100054#include "log.h"
Damien Miller194a1cb2006-07-10 21:09:22 +100055
Ben Lindstrom8a432f52001-03-05 07:24:46 +000056static LogLevel log_level = SYSLOG_LEVEL_INFO;
57static int log_on_stderr = 1;
Damien Miller03d4d7e2013-04-23 15:21:06 +100058static int log_stderr_fd = STDERR_FILENO;
Ben Lindstrom8a432f52001-03-05 07:24:46 +000059static int log_facility = LOG_AUTH;
60static char *argv0;
Damien Miller8f0bf232011-06-20 14:42:23 +100061static log_handler_fn *log_handler;
62static void *log_handler_ctx;
Ben Lindstrom8a432f52001-03-05 07:24:46 +000063
64extern char *__progname;
65
Damien Miller23a70272004-07-21 10:52:13 +100066#define LOG_SYSLOG_VIS (VIS_CSTYLE|VIS_NL|VIS_TAB|VIS_OCTAL)
67#define LOG_STDERR_VIS (VIS_SAFE|VIS_OCTAL)
68
Ben Lindstrom8a432f52001-03-05 07:24:46 +000069/* textual representation of log-facilities/levels */
70
71static struct {
72 const char *name;
73 SyslogFacility val;
74} log_facilities[] = {
75 { "DAEMON", SYSLOG_FACILITY_DAEMON },
76 { "USER", SYSLOG_FACILITY_USER },
77 { "AUTH", SYSLOG_FACILITY_AUTH },
Damien Miller30246a82001-03-05 21:23:31 +110078#ifdef LOG_AUTHPRIV
79 { "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
80#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +000081 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
82 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
83 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
84 { "LOCAL3", SYSLOG_FACILITY_LOCAL3 },
85 { "LOCAL4", SYSLOG_FACILITY_LOCAL4 },
86 { "LOCAL5", SYSLOG_FACILITY_LOCAL5 },
87 { "LOCAL6", SYSLOG_FACILITY_LOCAL6 },
88 { "LOCAL7", SYSLOG_FACILITY_LOCAL7 },
Damien Millerfcd93202002-02-05 12:26:34 +110089 { NULL, SYSLOG_FACILITY_NOT_SET }
Ben Lindstrom8a432f52001-03-05 07:24:46 +000090};
91
92static struct {
93 const char *name;
94 LogLevel val;
95} log_levels[] =
96{
97 { "QUIET", SYSLOG_LEVEL_QUIET },
98 { "FATAL", SYSLOG_LEVEL_FATAL },
99 { "ERROR", SYSLOG_LEVEL_ERROR },
100 { "INFO", SYSLOG_LEVEL_INFO },
101 { "VERBOSE", SYSLOG_LEVEL_VERBOSE },
102 { "DEBUG", SYSLOG_LEVEL_DEBUG1 },
103 { "DEBUG1", SYSLOG_LEVEL_DEBUG1 },
104 { "DEBUG2", SYSLOG_LEVEL_DEBUG2 },
105 { "DEBUG3", SYSLOG_LEVEL_DEBUG3 },
Damien Millerfcd93202002-02-05 12:26:34 +1100106 { NULL, SYSLOG_LEVEL_NOT_SET }
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000107};
108
109SyslogFacility
110log_facility_number(char *name)
111{
112 int i;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000113
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000114 if (name != NULL)
115 for (i = 0; log_facilities[i].name; i++)
116 if (strcasecmp(log_facilities[i].name, name) == 0)
117 return log_facilities[i].val;
Damien Millerfcd93202002-02-05 12:26:34 +1100118 return SYSLOG_FACILITY_NOT_SET;
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000119}
120
Darren Tuckere7140f22008-06-10 23:01:51 +1000121const char *
122log_facility_name(SyslogFacility facility)
123{
124 u_int i;
125
126 for (i = 0; log_facilities[i].name; i++)
127 if (log_facilities[i].val == facility)
128 return log_facilities[i].name;
129 return NULL;
130}
131
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000132LogLevel
133log_level_number(char *name)
134{
135 int i;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000136
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000137 if (name != NULL)
138 for (i = 0; log_levels[i].name; i++)
139 if (strcasecmp(log_levels[i].name, name) == 0)
140 return log_levels[i].val;
Damien Millerfcd93202002-02-05 12:26:34 +1100141 return SYSLOG_LEVEL_NOT_SET;
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000142}
Damien Miller5ce662a1999-11-11 17:57:39 +1100143
Darren Tuckere7140f22008-06-10 23:01:51 +1000144const char *
145log_level_name(LogLevel level)
146{
147 u_int i;
148
149 for (i = 0; log_levels[i].name != NULL; i++)
150 if (log_levels[i].val == level)
151 return log_levels[i].name;
152 return NULL;
153}
154
Damien Miller5ce662a1999-11-11 17:57:39 +1100155/* Error messages that should be logged. */
156
157void
Damien Miller95def091999-11-25 00:26:21 +1100158error(const char *fmt,...)
Damien Miller5ce662a1999-11-11 17:57:39 +1100159{
Damien Miller95def091999-11-25 00:26:21 +1100160 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000161
Damien Miller95def091999-11-25 00:26:21 +1100162 va_start(args, fmt);
163 do_log(SYSLOG_LEVEL_ERROR, fmt, args);
164 va_end(args);
Damien Miller5ce662a1999-11-11 17:57:39 +1100165}
166
Damien Miller99a648e2006-08-19 00:32:20 +1000167void
168sigdie(const char *fmt,...)
169{
Darren Tuckeraa1517c2006-08-20 17:55:54 +1000170#ifdef DO_LOG_SAFE_IN_SIGHAND
Damien Miller99a648e2006-08-19 00:32:20 +1000171 va_list args;
172
173 va_start(args, fmt);
174 do_log(SYSLOG_LEVEL_FATAL, fmt, args);
175 va_end(args);
Damien Millerbb598142006-08-19 08:38:23 +1000176#endif
Damien Miller99a648e2006-08-19 00:32:20 +1000177 _exit(1);
178}
179
180
Damien Miller5ce662a1999-11-11 17:57:39 +1100181/* Log this message (information that usually should go to the log). */
182
183void
Damien Miller996acd22003-04-09 20:59:48 +1000184logit(const char *fmt,...)
Damien Miller5ce662a1999-11-11 17:57:39 +1100185{
Damien Miller95def091999-11-25 00:26:21 +1100186 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000187
Damien Miller95def091999-11-25 00:26:21 +1100188 va_start(args, fmt);
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000189 do_log(SYSLOG_LEVEL_INFO, fmt, args);
Damien Miller95def091999-11-25 00:26:21 +1100190 va_end(args);
Damien Miller5ce662a1999-11-11 17:57:39 +1100191}
192
193/* More detailed messages (information that does not need to go to the log). */
194
195void
Damien Miller95def091999-11-25 00:26:21 +1100196verbose(const char *fmt,...)
Damien Miller5ce662a1999-11-11 17:57:39 +1100197{
Damien Miller95def091999-11-25 00:26:21 +1100198 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000199
Damien Miller95def091999-11-25 00:26:21 +1100200 va_start(args, fmt);
201 do_log(SYSLOG_LEVEL_VERBOSE, fmt, args);
202 va_end(args);
Damien Miller5ce662a1999-11-11 17:57:39 +1100203}
204
205/* Debugging messages that should not be logged during normal operation. */
206
207void
Damien Miller95def091999-11-25 00:26:21 +1100208debug(const char *fmt,...)
Damien Miller5ce662a1999-11-11 17:57:39 +1100209{
Damien Miller95def091999-11-25 00:26:21 +1100210 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000211
Damien Miller95def091999-11-25 00:26:21 +1100212 va_start(args, fmt);
Damien Millere4340be2000-09-16 13:29:08 +1100213 do_log(SYSLOG_LEVEL_DEBUG1, fmt, args);
214 va_end(args);
215}
216
217void
218debug2(const char *fmt,...)
219{
220 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000221
Damien Millere4340be2000-09-16 13:29:08 +1100222 va_start(args, fmt);
223 do_log(SYSLOG_LEVEL_DEBUG2, fmt, args);
224 va_end(args);
225}
226
227void
228debug3(const char *fmt,...)
229{
230 va_list args;
Ben Lindstrom8e8ef2a2002-07-07 22:14:55 +0000231
Damien Millere4340be2000-09-16 13:29:08 +1100232 va_start(args, fmt);
233 do_log(SYSLOG_LEVEL_DEBUG3, fmt, args);
Damien Miller95def091999-11-25 00:26:21 +1100234 va_end(args);
Damien Miller5ce662a1999-11-11 17:57:39 +1100235}
236
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000237/*
238 * Initialize the log.
239 */
240
241void
242log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
243{
Darren Tucker9b5495d2005-02-01 17:35:09 +1100244#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
245 struct syslog_data sdata = SYSLOG_DATA_INIT;
246#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000247
Darren Tucker835903d2005-03-09 20:12:47 +1100248 argv0 = av0;
249
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000250 switch (level) {
251 case SYSLOG_LEVEL_QUIET:
252 case SYSLOG_LEVEL_FATAL:
253 case SYSLOG_LEVEL_ERROR:
254 case SYSLOG_LEVEL_INFO:
255 case SYSLOG_LEVEL_VERBOSE:
256 case SYSLOG_LEVEL_DEBUG1:
257 case SYSLOG_LEVEL_DEBUG2:
258 case SYSLOG_LEVEL_DEBUG3:
259 log_level = level;
260 break;
261 default:
Kevin Stevesedcd5762001-04-02 13:45:00 +0000262 fprintf(stderr, "Unrecognized internal syslog level code %d\n",
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000263 (int) level);
264 exit(1);
265 }
266
Damien Miller8f0bf232011-06-20 14:42:23 +1000267 log_handler = NULL;
268 log_handler_ctx = NULL;
269
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000270 log_on_stderr = on_stderr;
271 if (on_stderr)
272 return;
273
274 switch (facility) {
275 case SYSLOG_FACILITY_DAEMON:
276 log_facility = LOG_DAEMON;
277 break;
278 case SYSLOG_FACILITY_USER:
279 log_facility = LOG_USER;
280 break;
281 case SYSLOG_FACILITY_AUTH:
282 log_facility = LOG_AUTH;
283 break;
Damien Miller30246a82001-03-05 21:23:31 +1100284#ifdef LOG_AUTHPRIV
285 case SYSLOG_FACILITY_AUTHPRIV:
286 log_facility = LOG_AUTHPRIV;
287 break;
Ben Lindstrom53f11c62001-03-05 08:18:17 +0000288#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000289 case SYSLOG_FACILITY_LOCAL0:
290 log_facility = LOG_LOCAL0;
291 break;
292 case SYSLOG_FACILITY_LOCAL1:
293 log_facility = LOG_LOCAL1;
294 break;
295 case SYSLOG_FACILITY_LOCAL2:
296 log_facility = LOG_LOCAL2;
297 break;
298 case SYSLOG_FACILITY_LOCAL3:
299 log_facility = LOG_LOCAL3;
300 break;
301 case SYSLOG_FACILITY_LOCAL4:
302 log_facility = LOG_LOCAL4;
303 break;
304 case SYSLOG_FACILITY_LOCAL5:
305 log_facility = LOG_LOCAL5;
306 break;
307 case SYSLOG_FACILITY_LOCAL6:
308 log_facility = LOG_LOCAL6;
309 break;
310 case SYSLOG_FACILITY_LOCAL7:
311 log_facility = LOG_LOCAL7;
312 break;
313 default:
314 fprintf(stderr,
Kevin Stevesedcd5762001-04-02 13:45:00 +0000315 "Unrecognized internal syslog facility code %d\n",
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000316 (int) facility);
317 exit(1);
318 }
Darren Tucker9b5495d2005-02-01 17:35:09 +1100319
320 /*
321 * If an external library (eg libwrap) attempts to use syslog
322 * immediately after reexec, syslog may be pointing to the wrong
323 * facility, so we force an open/close of syslog here.
324 */
325#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
326 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata);
327 closelog_r(&sdata);
328#else
329 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility);
330 closelog();
331#endif
Damien Miller6162d121999-11-21 13:23:52 +1100332}
333
Darren Tucker50a48d02012-09-06 21:25:37 +1000334void
335log_change_level(LogLevel new_log_level)
336{
337 /* no-op if log_init has not been called */
338 if (argv0 == NULL)
339 return;
340 log_init(argv0, new_log_level, log_facility, log_on_stderr);
341}
342
343int
344log_is_on_stderr(void)
345{
346 return log_on_stderr;
347}
348
Damien Miller03d4d7e2013-04-23 15:21:06 +1000349/* redirect what would usually get written to stderr to specified file */
350void
351log_redirect_stderr_to(const char *logfile)
352{
353 int fd;
354
355 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
356 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile,
357 strerror(errno));
358 exit(1);
359 }
360 log_stderr_fd = fd;
361}
362
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000363#define MSGBUFSIZ 1024
364
Ben Lindstrom9c8edc92002-02-26 17:52:14 +0000365void
Damien Miller8f0bf232011-06-20 14:42:23 +1000366set_log_handler(log_handler_fn *handler, void *ctx)
367{
368 log_handler = handler;
369 log_handler_ctx = ctx;
370}
371
372void
373do_log2(LogLevel level, const char *fmt,...)
374{
375 va_list args;
376
377 va_start(args, fmt);
378 do_log(level, fmt, args);
379 va_end(args);
380}
381
382void
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000383do_log(LogLevel level, const char *fmt, va_list args)
Damien Miller6162d121999-11-21 13:23:52 +1100384{
Damien Miller051b0ac2004-02-18 22:59:43 +1100385#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
Damien Miller74a34422003-05-20 09:24:17 +1000386 struct syslog_data sdata = SYSLOG_DATA_INIT;
387#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000388 char msgbuf[MSGBUFSIZ];
389 char fmtbuf[MSGBUFSIZ];
390 char *txt = NULL;
391 int pri = LOG_INFO;
Darren Tucker36b78002007-05-20 15:08:15 +1000392 int saved_errno = errno;
Damien Miller8f0bf232011-06-20 14:42:23 +1000393 log_handler_fn *tmp_handler;
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000394
395 if (level > log_level)
396 return;
397
398 switch (level) {
399 case SYSLOG_LEVEL_FATAL:
400 if (!log_on_stderr)
401 txt = "fatal";
402 pri = LOG_CRIT;
403 break;
404 case SYSLOG_LEVEL_ERROR:
405 if (!log_on_stderr)
406 txt = "error";
407 pri = LOG_ERR;
408 break;
409 case SYSLOG_LEVEL_INFO:
410 pri = LOG_INFO;
411 break;
412 case SYSLOG_LEVEL_VERBOSE:
413 pri = LOG_INFO;
414 break;
415 case SYSLOG_LEVEL_DEBUG1:
416 txt = "debug1";
417 pri = LOG_DEBUG;
418 break;
419 case SYSLOG_LEVEL_DEBUG2:
420 txt = "debug2";
421 pri = LOG_DEBUG;
422 break;
423 case SYSLOG_LEVEL_DEBUG3:
424 txt = "debug3";
425 pri = LOG_DEBUG;
426 break;
427 default:
428 txt = "internal error";
429 pri = LOG_ERR;
430 break;
431 }
Damien Miller8f0bf232011-06-20 14:42:23 +1000432 if (txt != NULL && log_handler == NULL) {
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000433 snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", txt, fmt);
434 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args);
435 } else {
436 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args);
437 }
Damien Miller23a70272004-07-21 10:52:13 +1000438 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf),
439 log_on_stderr ? LOG_STDERR_VIS : LOG_SYSLOG_VIS);
Damien Miller8f0bf232011-06-20 14:42:23 +1000440 if (log_handler != NULL) {
441 /* Avoid recursion */
442 tmp_handler = log_handler;
443 log_handler = NULL;
444 tmp_handler(level, fmtbuf, log_handler_ctx);
445 log_handler = tmp_handler;
446 } else if (log_on_stderr) {
Damien Millerc11fe252003-05-25 14:38:02 +1000447 snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf);
Darren Tuckerdbee3082013-05-16 20:32:29 +1000448 (void)write(log_stderr_fd, msgbuf, strlen(msgbuf));
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000449 } else {
Damien Miller051b0ac2004-02-18 22:59:43 +1100450#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
Damien Miller74a34422003-05-20 09:24:17 +1000451 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata);
Damien Millerc11fe252003-05-25 14:38:02 +1000452 syslog_r(pri, &sdata, "%.500s", fmtbuf);
Damien Miller74a34422003-05-20 09:24:17 +1000453 closelog_r(&sdata);
454#else
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000455 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility);
Damien Millerb93addb2003-01-07 17:04:18 +1100456 syslog(pri, "%.500s", fmtbuf);
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000457 closelog();
Damien Miller74a34422003-05-20 09:24:17 +1000458#endif
Ben Lindstrom8a432f52001-03-05 07:24:46 +0000459 }
Darren Tucker36b78002007-05-20 15:08:15 +1000460 errno = saved_errno;
Damien Miller6162d121999-11-21 13:23:52 +1100461}