You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(23) |
Oct
(2) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(4) |
Feb
(11) |
Mar
(1) |
Apr
(104) |
May
(18) |
Jun
(42) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: <al...@us...> - 2003-02-23 22:58:53
|
Update of /cvsroot/msyslog/msyslog-event/src/modules In directory sc8-pr-cvs1:/tmp/cvs-serv6327/modules Modified Files: file.c Log Message: file: use new m_arg struct's union msyslog.h: argv is char *[] !! Index: file.c =================================================================== RCS file: /cvsroot/msyslog/msyslog-event/src/modules/file.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- file.c 23 Feb 2003 22:19:20 -0000 1.1.1.1 +++ file.c 23 Feb 2003 22:58:50 -0000 1.2 @@ -126,7 +126,7 @@ int ch, cnt; /* file -f path -m xxx */ - if (arg->argc < 3 || arg->argc > 5) + if (arg->u.args.argc < 3 || arg->u.args.argc > 5) return (-1); c = (struct file_ctx *) arg->ctx; @@ -149,20 +149,20 @@ /* parse command line */ cnt = 1; - while ((ch = getxopt(arg->argc, arg->argv, + while ((ch = getxopt(arg->u.args.argc, arg->u.args.argv, "f!file: p!pipe: m!mode: c!create", &cnt)) != -1) { switch (ch) { case 'm': - c->mode = (mode_t) strtol(arg->argv[cnt], NULL, 8); + c->mode = (mode_t) strtol(arg->u.args.argv[cnt], NULL, 8); break; case 'f': /* regular file */ c->flags |= F_FILE; - fname = arg->argv[cnt]; + fname = arg->u.args.argv[cnt]; break; case 'p': /* pipe */ c->flags |= F_PIPE; - fname = arg->argv[cnt]; + fname = arg->u.args.argv[cnt]; break; case 'c': c->options |= O_CREAT; @@ -200,8 +200,8 @@ c = (struct file_ctx *) arg->ctx; /* write the data */ - iov[0].iov_base = arg->msg->data; - iov[0].iov_len = arg->msg->dlen; + iov[0].iov_base = arg->u.msg.data; + iov[0].iov_len = arg->u.msg.dlen; iov[1].iov_base = "\n"; /* trailing newline */ iov[1].iov_len = 1; @@ -232,8 +232,8 @@ c = (struct file_ctx *) arg->ctx; /* read the data */ - if ((arg->msg->dlen = read(arg->fd, arg->msg->data, - (sizeof (arg->msg->data) - 1))) == -1) { + if ((arg->u.msg.dlen = read(arg->fd, arg->u.msg.data, + (sizeof (arg->u.msg.data) - 1))) == -1) { strlcpy(arg->err_buf, "file: error reading: ", sizeof (arg->err_buf)); |
From: <al...@us...> - 2003-02-23 22:58:53
|
Update of /cvsroot/msyslog/msyslog-event/src In directory sc8-pr-cvs1:/tmp/cvs-serv6327 Modified Files: msyslog.h Log Message: file: use new m_arg struct's union msyslog.h: argv is char *[] !! Index: msyslog.h =================================================================== RCS file: /cvsroot/msyslog/msyslog-event/src/msyslog.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- msyslog.h 23 Feb 2003 22:19:14 -0000 1.1.1.1 +++ msyslog.h 23 Feb 2003 22:58:50 -0000 1.2 @@ -76,7 +76,7 @@ /* module name + argv */ struct p_args { int argc; - char argv[MAX_ARGVS][MAX_ARGVLEN]; + char *argv[MAX_ARGVS]; }; /* |
From: <al...@us...> - 2003-02-23 22:33:40
|
Update of /cvsroot/msyslog/msyslog-event/src/modules In directory sc8-pr-cvs1:/tmp/cvs-serv27671/src/modules Removed Files: file.ale Log Message: remove stuff that shouldn't be in the repository, d'oh! --- file.ale DELETED --- |
From: <al...@us...> - 2003-02-23 22:33:40
|
Update of /cvsroot/msyslog/msyslog-event/src In directory sc8-pr-cvs1:/tmp/cvs-serv27671/src Removed Files: engine.cbad msyslog Log Message: remove stuff that shouldn't be in the repository, d'oh! --- engine.cbad DELETED --- --- msyslog DELETED --- |
From: <al...@us...> - 2003-02-23 22:33:39
|
Update of /cvsroot/msyslog/msyslog-event/doc In directory sc8-pr-cvs1:/tmp/cvs-serv27671/doc Removed Files: rfc3164.txt rfc3195.txt Log Message: remove stuff that shouldn't be in the repository, d'oh! --- rfc3164.txt DELETED --- --- rfc3195.txt DELETED --- |
From: <jk...@us...> - 2003-02-22 03:41:01
|
Update of /cvsroot/msyslog/syslog/src/modules In directory sc8-pr-cvs1:/tmp/cvs-serv14655/src/modules Modified Files: im_bsd.c im_file.c im_serial.c im_tcp.c im_udp.c Log Message: Fix at least five buffer overflows around strncat(3) calls. It's very likely most of them (if not all) were exploitable. Be warned, as I don't use this software myself, and given the changes are minor, I didn't bother to test these modifications beyond checking the program still compiles cleanly. I'm positive I didn't break anything, though. Index: im_bsd.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/im_bsd.c,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- im_bsd.c 17 Sep 2002 05:20:27 -0000 1.86 +++ im_bsd.c 22 Feb 2003 03:40:58 -0000 1.87 @@ -92,8 +92,8 @@ char *p, *q, *lp; int i, c; - strncpy(ret->im_msg, _PATH_UNIX, sizeof(ret->im_msg) - 4); - strncat(ret->im_msg, ": ", 2); + assert(sizeof (ret->im_msg) >= sizeof (_PATH_UNIX ": ")); + snprintf(ret->im_msg, sizeof (ret->im_msg), _PATH_UNIX ": "); lp = ret->im_msg + strlen(ret->im_msg); i = read(im->im_fd, im->im_buf, sizeof(im->im_buf) - 1); Index: im_file.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/im_file.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- im_file.c 17 Sep 2002 05:20:27 -0000 1.8 +++ im_file.c 22 Feb 2003 03:40:58 -0000 1.9 @@ -303,7 +303,8 @@ m_dprintf(MSYSLOG_INFORMATIVE, "im_file_read: append current line with prior partial message: [%s] [%s]\n", c->saveline, thisline); - strncat(c->saveline, thisline, sizeof(c->saveline) - 1); + strncat(c->saveline, thisline, + sizeof(c->saveline) - strlen(c->saveline) - 1); c->saveline[sizeof(c->saveline) - 1] = '\0'; thisline = c->saveline; } @@ -358,8 +359,10 @@ /* put the hostname into the message */ /* - strncat(ret->im_msg, c->name, sizeof(ret->im_msg) - 1); - strncat(ret->im_msg, ":", sizeof(ret->im_msg) - 1); + strncat(ret->im_msg, c->name, + sizeof(ret->im_msg) - strlen(ret->im_msg) - 1); + strncat(ret->im_msg, ":", + sizeof(ret->im_msg) - strlen(ret->im_msg) - 1); m_dprintf(MSYSLOG_INFORMATIVE, "im_file_read: reformed header: [%s]\n", ret->im_msg); */ Index: im_serial.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/im_serial.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- im_serial.c 26 Sep 2002 18:09:35 -0000 1.3 +++ im_serial.c 22 Feb 2003 03:40:58 -0000 1.4 @@ -261,7 +261,8 @@ m_dprintf(MSYSLOG_INFORMATIVE, "im_serial_read: append current line with prior partial message: [%s] [%s]\n", c->saveline, thisline); - strncat(c->saveline, thisline, sizeof(c->saveline) - 1); + strncat(c->saveline, thisline, + sizeof(c->saveline) - strlen(c->saveline) - 1); c->saveline[sizeof(c->saveline) - 1] = '\0'; thisline = c->saveline; } @@ -315,8 +316,10 @@ } /* put the hostname into the message */ - strncat(ret->im_msg, c->name, sizeof(ret->im_msg) - 1); - strncat(ret->im_msg, ":", sizeof(ret->im_msg) - 1); + strncat(ret->im_msg, c->name, + sizeof(ret->im_msg) - strlen(ret->im_msg) - 1); + strncat(ret->im_msg, ":", + sizeof(ret->im_msg) - strlen(ret->im_msg) - 1); m_dprintf(MSYSLOG_INFORMATIVE, "im_serial_read: reformed header: [%s]\n", ret->im_msg); if (ret->im_pri &~ (LOG_FACMASK|LOG_PRIMASK)) ret->im_pri = DEFSPRI; Index: im_tcp.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/im_tcp.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- im_tcp.c 17 Sep 2002 06:30:41 -0000 1.43 +++ im_tcp.c 22 Feb 2003 03:40:58 -0000 1.44 @@ -362,7 +362,8 @@ m_dprintf(MSYSLOG_INFORMATIVE, "im_tcp_read: append current line with prior partial message: [%s] [%s]\n", con->saveline, thisline); - strncat(con->saveline, thisline, sizeof(con->saveline) - 1); + strncat(con->saveline, thisline, + sizeof(con->saveline) - strlen(con->saveline) - 1); con->saveline[sizeof(con->saveline) - 1] = '\0'; thisline = con->saveline; } Index: im_udp.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/im_udp.c,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- im_udp.c 25 Sep 2002 22:50:16 -0000 1.79 +++ im_udp.c 22 Feb 2003 03:40:58 -0000 1.80 @@ -230,7 +230,8 @@ ret->im_msg[n1++] = ret->im_msg[n2++]; ret->im_msg[n1] = '\0'; - strncat(ret->im_host, host, sizeof(ret->im_host)); + strncat(ret->im_host, host, + sizeof(ret->im_host) - strlen(ret->im_host) - 1); ret->im_host[sizeof (ret->im_host) - 1] = '\0'; } |
From: <ph...@us...> - 2003-01-08 16:02:55
|
Update of /cvsroot/msyslog/syslog/src In directory sc8-pr-cvs1:/tmp/cvs-serv16770/syslog/src Modified Files: syslogd.c syslogd.h Log Message: INTERNAL_NOPRI value was preventing logging based only on the "warning" priority from occuring. This is because INTERNAL_NOPRI (a macro indicating a given facility should NOT be logged to a particular file) had the same value (16) as the priority value of "warning" (4) when used as an exponent of 2 (2**4 = 16). See 'cfline' function in syslogd.c for details. The fix involves giving INTERNAL_NOPRI a different value (256), and making an appropriate type change (u_char to u_short) to a key variable that stores this value. Index: syslogd.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/syslogd.c,v retrieving revision 1.234 retrieving revision 1.235 diff -u -d -r1.234 -r1.235 --- syslogd.c 7 Jan 2003 21:56:05 -0000 1.234 +++ syslogd.c 8 Jan 2003 16:02:44 -0000 1.235 @@ -1480,39 +1480,34 @@ *bp = '\0'; if (*buf == '*') { + for (i = 0; i <= LOG_NFACILITIES; i++) { + if (pri == INTERNAL_NOPRI) { - if (ignorepri) - f->f_pmask[i] = - TABLE_ALLPRI; - else - f->f_pmask[i] = - TABLE_NOPRI; + + if (ignorepri) f->f_pmask[i] = TABLE_ALLPRI; + else f->f_pmask[i] = TABLE_NOPRI; + } else if (singlpri) { - if (ignorepri) - f->f_pmask[i] &= - ~(1<<pri); - else - f->f_pmask[i] |= - (1<<pri); + + if (ignorepri) f->f_pmask[i] &= ~(1<<pri); + else f->f_pmask[i] |= (1<<pri); + } else { + if (pri == TABLE_ALLPRI) { - if (ignorepri) - f->f_pmask[i] = - TABLE_NOPRI; - else - f->f_pmask[i] = - TABLE_ALLPRI; + + if (ignorepri) f->f_pmask[i] = TABLE_NOPRI; + else f->f_pmask[i] = TABLE_ALLPRI; + } else { - if (ignorepri) - for (j = 0; j <= pri; ++j) - f->f_pmask[i] &= ~(1<<j); - else - for (j= 0; j <= pri; ++j) - f->f_pmask[i] |= (1<<j); + + if (ignorepri) for (j = 0; j <= pri; ++j) f->f_pmask[i] &= ~(1<<j); + else for (j = 0; j <= pri; ++j) f->f_pmask[i] |= (1<<j); } } } + } else { i = decode(buf, facilitynames); @@ -1524,44 +1519,32 @@ } if (pri == INTERNAL_NOPRI) { - if (ignorepri) - f->f_pmask[i >> 3] = - TABLE_ALLPRI; - else - f->f_pmask[i >> 3] = - TABLE_NOPRI; + + if (ignorepri) f->f_pmask[i >> 3] = TABLE_ALLPRI; + else f->f_pmask[i >> 3] = TABLE_NOPRI; + } else if (singlpri) { - if (ignorepri) - f->f_pmask[i >> 3] &= - ~(1<<pri); - else - f->f_pmask[i >> 3] |= - (1<<pri); + + if (ignorepri) f->f_pmask[i >> 3] &= ~(1<<pri); + else f->f_pmask[i >> 3] |= (1<<pri); + } else { + if (pri == TABLE_ALLPRI) { - if (ignorepri) - f->f_pmask[i >> 3] = - TABLE_NOPRI; - else - f->f_pmask[i >> 3] = - TABLE_ALLPRI; + + if (ignorepri) f->f_pmask[i >> 3] = TABLE_NOPRI; + else f->f_pmask[i >> 3] = TABLE_ALLPRI; + } else { - if (ignorepri) - for (j = 0; j <= pri; - ++j) - f->f_pmask[i>>3] - &= ~(1<<j); - else - for (j= 0; j <= pri; - ++j) - f->f_pmask[i>>3] - |= (1<<j); + + if (ignorepri) for (j = 0; j <= pri; ++j) f->f_pmask[i>>3] &= ~(1<<j); + else for (j = 0; j <= pri; ++j) f->f_pmask[i>>3] |= (1<<j); + } } } - while (*p == ',' || *p == ' ') - p++; + while (*p == ',' || *p == ' ') ++p; } p = q; Index: syslogd.h =================================================================== RCS file: /cvsroot/msyslog/syslog/src/syslogd.h,v retrieving revision 1.111 retrieving revision 1.112 diff -u -d -r1.111 -r1.112 --- syslogd.h 17 Sep 2002 05:20:26 -0000 1.111 +++ syslogd.h 8 Jan 2003 16:02:48 -0000 1.112 @@ -137,7 +137,7 @@ struct filed { struct filed *f_next; /* next in linked list */ time_t f_time; /* time this was last written */ - u_char f_pmask[LOG_NFACILITIES+1]; /* priority mask */ + u_short f_pmask[LOG_NFACILITIES+1]; /* priority mask */ char *f_program; /* program this applies to */ struct tm f_tm; /* date of message */ char f_prevline[MAXSVLINE]; /* last message logged */ @@ -212,6 +212,11 @@ * some systems lack those, so we define them here */ +#ifdef INTERNAL_NOPRI +#undef INTERNAL_NOPRI +#endif +#define INTERNAL_NOPRI 0x100 + #ifndef HAVE_CODE # ifdef SYSLOG_NAMES @@ -235,7 +240,6 @@ # define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3) # endif -# define INTERNAL_NOPRI 0x10 # define INTERNAL_MARK LOG_MAKEPRI(LOG_NFACILITIES, 0) @@ -291,4 +295,4 @@ -#endif +#endif /* HAVE_CODE */ |
From: <ph...@us...> - 2003-01-07 21:56:11
|
Update of /cvsroot/msyslog/syslog/src/modules In directory sc8-pr-cvs1:/tmp/cvs-serv24230/syslog/src/modules Modified Files: ip_misc.c om_refract.c Log Message: watch_fd_input in syslog/src/syslogd.c was not properly recording file-descriptors to be polled. sock_udp in syslog/src/modules/ip_misc.c was using a key variable after freeing it. It also needed to perform a bind on the udp socket after creating it. om_refract_init in syslog/src/modules/om_refract.c had a misspilled varibale. Index: ip_misc.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/ip_misc.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- ip_misc.c 25 Sep 2002 22:50:16 -0000 1.26 +++ ip_misc.c 7 Jan 2003 21:56:07 -0000 1.27 @@ -235,6 +235,7 @@ sa = (struct sockaddr *) malloc(res->ai_addrlen); memcpy(sa, res->ai_addr, res->ai_addrlen); + *salen = res->ai_addrlen; freeaddrinfo(res); @@ -439,21 +440,30 @@ int sock_udp(char *host, char *port, void **addr, int *addrlen) { - struct sockaddr *sa; - socklen_t salen; + struct sockaddr *sa; + socklen_t salen; + int socket_fd; - if ((sa = resolv_name(host, port, "udp", &salen)) == NULL) - return (-1); + if ( ( sa = resolv_name(host, port, "udp", &salen) ) == NULL ) +return -1; - /* pass struct sockaddr if requested */ - if (addrlen != NULL) - *addrlen = salen; - if (addr != NULL) - *addr = sa; - else - free(sa); + /* USE sa->sa_family BEFORE sa IS FREED */ + if ( ( socket_fd = socket(sa->sa_family, SOCK_DGRAM, 0) ) == -1 ) { + m_dprintf(MSYSLOG_SERIOUS, "could not create udp socket: %s\n", sys_errlist[errno]); +return -1; + } + if ( bind(socket_fd, sa, salen ) != 0 ) { + m_dprintf(MSYSLOG_SERIOUS, "bind failed for udp socket: %s\n", sys_errlist[errno]); +return -1; + } - return (socket(sa->sa_family, SOCK_DGRAM, 0)); + /* pass struct sockaddr if requested */ + if (addrlen != NULL) *addrlen = salen; + + if (addr != NULL) *addr = sa; + else free(sa); /* sa FREED HERE */ + +return socket_fd; } /* Index: om_refract.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/om_refract.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- om_refract.c 6 Jan 2003 23:17:40 -0000 1.6 +++ om_refract.c 7 Jan 2003 21:56:08 -0000 1.7 @@ -141,7 +141,7 @@ break; case 'c': - ctx->fire_count = strtol(argv[argcnt], &endptr, 0); + ctx->fired_count = strtol(argv[argcnt], &endptr, 0); if (endptr == NULL || endptr == argv[argcnt]) { snprintf(statbuf, sizeof(statbuf), "om_refract_init: " "bad argument to -c option [%s], should be numeric firing count", argv[argcnt]); |
From: <ph...@us...> - 2003-01-07 21:56:10
|
Update of /cvsroot/msyslog/syslog/src In directory sc8-pr-cvs1:/tmp/cvs-serv24230/syslog/src Modified Files: syslogd.c Log Message: watch_fd_input in syslog/src/syslogd.c was not properly recording file-descriptors to be polled. sock_udp in syslog/src/modules/ip_misc.c was using a key variable after freeing it. It also needed to perform a bind on the udp socket after creating it. om_refract_init in syslog/src/modules/om_refract.c had a misspilled varibale. Index: syslogd.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/syslogd.c,v retrieving revision 1.233 retrieving revision 1.234 diff -u -d -r1.233 -r1.234 --- syslogd.c 17 Sep 2002 05:20:26 -0000 1.233 +++ syslogd.c 7 Jan 2003 21:56:05 -0000 1.234 @@ -1682,21 +1682,26 @@ switch (type) { case 'p': /* pollable */ - if (poll_fd && poll_fd_cnt % 50 != 0) break; - if ( (poll_fd = (struct pollfd *) realloc(poll_fd, - (size_t) (poll_fd_cnt + 50) * sizeof(struct pollfd))) - == NULL) { - m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: poll fd"); + if (poll_fd_cnt % 50 == 0) { + + if ( ( poll_fd = (struct pollfd *)realloc( + poll_fd, + (size_t)(poll_fd_cnt + 50) * sizeof(struct pollfd) + ) ) == NULL ) { + m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: poll fd"); exit(-1); - } + } - if ( (poll_fd_modules = (struct i_module **) realloc(poll_fd_modules, - (size_t) (poll_fd_cnt + 50) * sizeof(struct i_module *))) - == NULL) { - m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: input modules"); + if ( ( poll_fd_modules = (struct i_module **)realloc( + poll_fd_modules, + (size_t)(poll_fd_cnt + 50) * sizeof(struct i_module *) + ) ) == NULL ) { + m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: input modules"); exit(-1); - } + } + + } poll_fd[poll_fd_cnt].fd = fd; poll_fd[poll_fd_cnt].events = POLLIN; @@ -1706,21 +1711,25 @@ break; case 'u': /* unpollable */ - if (unpoll_fd && unpoll_fd_cnt % 50 != 0) break; - if ( (unpoll_fd = (int *) realloc(unpoll_fd, - (size_t) (unpoll_fd_cnt + 50) * sizeof(int))) - == NULL) { + if (unpoll_fd_cnt % 50 == 0) { + + if ( ( unpoll_fd = (int *)realloc( + unpoll_fd, + (size_t)(unpoll_fd_cnt + 50) * sizeof(int) + ) ) == NULL ) { m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: unpoll fd"); exit(-1); - } + } - if ( (unpoll_fd_modules = (struct i_module **) realloc(unpoll_fd_modules, - (size_t) (unpoll_fd_cnt + 50) * sizeof(struct i_module *))) - == NULL) { - m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: input modules"); + if ( ( unpoll_fd_modules = (struct i_module **)realloc( + unpoll_fd_modules, + (size_t)(unpoll_fd_cnt + 50) * sizeof(struct i_module *) + ) ) == NULL ) { + m_dprintf(MSYSLOG_CRITICAL, "realloc inputs: input modules"); exit(-1); - } + } + } unpoll_fd[unpoll_fd_cnt] = fd; unpoll_fd_modules[unpoll_fd_cnt] = im; |
From: <ph...@us...> - 2003-01-06 23:17:43
|
Update of /cvsroot/msyslog/syslog/src/modules In directory sc8-pr-cvs1:/tmp/cvs-serv5392/syslog/src/modules Modified Files: om_classic.c om_refract.c Log Message: Optarg no longer used. Allow classic to create missing logfiles. Index: om_classic.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/om_classic.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- om_classic.c 17 Sep 2002 05:20:28 -0000 1.91 +++ om_classic.c 6 Jan 2003 23:17:39 -0000 1.92 @@ -234,7 +234,7 @@ */ if ((e == EIO || e == EBADF) && c->f_type != F_FILE) { c->fd = open(c->f_un.f_fname, - O_WRONLY|O_APPEND, 0); + O_WRONLY|O_APPEND|O_CREAT, 0640); if (c->fd < 0) { c->f_type = F_UNUSED; m_dprintf(MSYSLOG_WARNING, "om_classic: " @@ -379,7 +379,7 @@ fprintf (global->flist_des, "%s\tregular\n", p); } else { - c->fd = open(p, O_WRONLY|O_APPEND, 0); + c->fd = open(p, O_WRONLY|O_APPEND|O_CREAT, 0640); c->f_type = F_FILE; } } Index: om_refract.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/om_refract.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- om_refract.c 7 Sep 2002 23:41:32 -0000 1.5 +++ om_refract.c 6 Jan 2003 23:17:40 -0000 1.6 @@ -78,6 +78,7 @@ char ch; char *endptr; + int argcnt; /* FOR DEBUGGING PURPOSES */ m_dprintf(MSYSLOG_INFORMATIVE, "om_refract_init: starting\n"); @@ -108,47 +109,55 @@ optreset = 1; #endif - { - int argcnt = 1; - - /* 'h' OPTION NOT YET IMPLEMENTED */ - while ( ( ch = getxopt(argc, argv, "p!period: c!count:", &argcnt) ) != -1 ) { - switch (ch) { + /* 'h' OPTION NOT YET IMPLEMENTED */ + for( argcnt = 1 ; ( ch = getxopt(argc, argv, "p!period: c!count:", &argcnt) ) != -1 ; ++argcnt ) { + switch (ch) { - case 'p': - ctx->refraction_period = strtol(optarg, &endptr, 0); - if (endptr == NULL || endptr == optarg) { - snprintf(statbuf, sizeof(statbuf), "om_refract_init: " - "bad argument to -p option [%s], should be numeric refraction period", optarg); - m_dprintf(MSYSLOG_SERIOUS, "%s\n", statbuf); - *status = strdup(statbuf); - free(*context); - return(-1); - } - ctx->filter_bitstring |= OM_FILTER_PERIOD; - break; + case 'p': + ctx->refraction_period = strtol(argv[argcnt], &endptr, 0); + if (endptr == NULL || endptr == argv[argcnt]) { + snprintf(statbuf, sizeof(statbuf), "om_refract_init: " + "bad argument to -p option [%s], should be numeric refraction period", argv[argcnt]); + m_dprintf(MSYSLOG_SERIOUS, "%s\n", statbuf); + *status = strdup(statbuf); + free(*context); +return(-1); + } - case 'r': - ctx->fired_count = strtol(optarg, &endptr, 0); - if (endptr == NULL || endptr == optarg) { + ctx->filter_bitstring |= OM_FILTER_PERIOD; + break; + + case 'r': + ctx->fired_count = strtol(argv[argcnt], &endptr, 0); + if (endptr == NULL || endptr == argv[argcnt]) { snprintf(statbuf, sizeof(statbuf), "om_refract_init: " - "bad argument to -r option [%s], should be numeric, rules fired count", optarg); + "bad argument to -r option [%s], should be numeric, rules fired count", argv[argcnt]); m_dprintf(MSYSLOG_SERIOUS, "%s\n", statbuf); *status = strdup(statbuf); free(*context); return(-1); } ctx->filter_bitstring |= OM_FILTER_RULES; - break; + break; - default: - snprintf(statbuf, sizeof(statbuf), "om_refract_init: bad option [%c]", ch); + case 'c': + ctx->fire_count = strtol(argv[argcnt], &endptr, 0); + if (endptr == NULL || endptr == argv[argcnt]) { + snprintf(statbuf, sizeof(statbuf), "om_refract_init: " + "bad argument to -c option [%s], should be numeric firing count", argv[argcnt]); m_dprintf(MSYSLOG_SERIOUS, "%s\n", statbuf); *status = strdup(statbuf); free(*context); - return (-1); - } - argcnt++; +return(-1); + } + break; + + default: + snprintf(statbuf, sizeof(statbuf), "om_refract_init: bad option [%c]", ch); + m_dprintf(MSYSLOG_SERIOUS, "%s\n", statbuf); + *status = strdup(statbuf); + free(*context); +return (-1); } } |
From: <al...@us...> - 2002-11-25 17:04:10
|
Update of /cvsroot/msyslog/syslog In directory sc8-pr-cvs1:/tmp/cvs-serv18006 Modified Files: configure.in Log Message: fix path for peo sources on modules reported by Anonymous on SourceForge bug #643305 Index: configure.in =================================================================== RCS file: /cvsroot/msyslog/syslog/configure.in,v retrieving revision 1.155 retrieving revision 1.156 diff -u -d -r1.155 -r1.156 --- configure.in 27 Sep 2002 22:28:29 -0000 1.155 +++ configure.in 25 Nov 2002 17:03:56 -0000 1.156 @@ -455,23 +455,23 @@ MSRCS="$MSRCS om_peo.c" MANPAGES="$MANPAGES om_peo.8 peochk.8" - HASH_SRCS="hash.c"; + HASH_SRCS="../peo/hash.c"; HASH_SRCS_MODULES="../peo/hash.c"; HASH_OBJS_MODULES="../peo/hash.o"; AC_CHECK_FUNC(MD5Init, AC_DEFINE(HAVE_MD5), - HASH_SRCS="$HASH_SRCS md5c.c"; + HASH_SRCS="$HASH_SRCS ../peo/md5c.c"; HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/md5c.c"; - HASH_OBJS_MODULES="$HASH_OBJS_MODULES md5c.o"; + HASH_OBJS_MODULES="$HASH_OBJS_MODULES ../peo/md5c.o"; ) AC_CHECK_FUNC(SHA1Init, AC_DEFINE(HAVE_SHA1), - HASH_SRCS="$HASH_SRCS sha1.c"; + HASH_SRCS="$HASH_SRCS ../peo/sha1.c"; HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/sha1.c"; - HASH_OBJS_MODULES="$HASH_OBJS_MODULES sha1.o"; + HASH_OBJS_MODULES="$HASH_OBJS_MODULES ../peo/sha1.o"; ) AC_CHECK_FUNC(RMD160Init, AC_DEFINE(HAVE_RMD160), - HASH_SRCS="$HASH_SRCS rmd160.c"; + HASH_SRCS="$HASH_SRCS ../peo/rmd160.c"; HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/rmd160.c"; - HASH_OBJS_MODULES="$HASH_OBJS_MODULES rmd160.o"; + HASH_OBJS_MODULES="$HASH_OBJS_MODULES ../peo/rmd160.o"; ) if test -r /dev/srandom ; then AC_DEFINE(HAVE_SRANDOM) |
From: <al...@us...> - 2002-10-01 19:37:52
|
Update of /cvsroot/msyslog/syslog/src/modules In directory usw-pr-cvs1:/tmp/cvs-serv27968a/src/modules Modified Files: om_regex.c Log Message: style before changing Index: om_regex.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules/om_regex.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- om_regex.c 26 Sep 2002 18:46:07 -0000 1.48 +++ om_regex.c 1 Oct 2002 19:37:39 -0000 1.49 @@ -183,137 +183,135 @@ * */ - for( - argcnt = 1 /* skip module name */ - ; - ( ch = getxopt( - argc, - argv, - "v!reverse!inverse m!message: h!host: s!subst:", - &argcnt - ) ) != -1 - ; - argcnt++ - ) { - - p = NULL; + for(argcnt = 1; (ch = getxopt(argc, argv, "v!reverse!inverse m!message: " + "h!host: s!subst: i!icase", &argcnt)) != -1; argcnt++) { - switch (ch) { + p = NULL; - case 'v': - if (c->filters & OM_FILTER_SUBST) { - m_dprintf(MSYSLOG_WARNING, "om_regex: error compiling " - "inverse regular expression incompatible with substitution\n"); - break; - } - c->filters |= OM_FILTER_INVERSE; - statbuf_len += snprintf(statbuf + statbuf_len, sizeof(statbuf) - statbuf_len, ", inverse"); - break; + switch (ch) { - case 'm': - if (m_processed) { - m_dprintf(MSYSLOG_WARNING, "om_regex: " - "m option specified more than once, only first accepted\n"); - break; - } - c->filters |= OM_FILTER_MESSAGE; + case 'v': + if (c->filters & OM_FILTER_SUBST) { + m_dprintf(MSYSLOG_WARNING, "om_regex: error compiling " + "inverse regular expression incompatible with " + "substitution\n"); + break; + } + c->filters |= OM_FILTER_INVERSE; + statbuf_len += snprintf(statbuf + statbuf_len, + sizeof(statbuf) - statbuf_len, ", inverse"); + break; - if (regcomp(&c->msg_exp, argv[argcnt], REG_EXTENDED) != 0) { + case 'm': + if (m_processed) { + m_dprintf(MSYSLOG_WARNING, "om_regex: m option " + "specified more than once, only first accepted\n"); + break; + } + c->filters |= OM_FILTER_MESSAGE; - m_dprintf(MSYSLOG_SERIOUS, "om_regex: error compiling " - "regular expression [%s] for message\n", argv[argcnt]); - free(*ctx); -return -1; - } + if (regcomp(&c->msg_exp, argv[argcnt], REG_EXTENDED) != 0) { - c->msg_no_subexp = count_subexp(&subexp_regex_comp, argv[argcnt]); - p = ", message"; - opt_recent = 'm'; - m_processed = 1; - break; + m_dprintf(MSYSLOG_SERIOUS, "om_regex: error compiling " + "regular expression [%s] for message\n", + argv[argcnt]); + free(*ctx); + return -1; + } - case 'h': - if (h_processed) { - m_dprintf(MSYSLOG_WARNING, "om_regex: " - "h option specified more than once, only first accepted\n"); - break; - } - c->filters |= OM_FILTER_HOST; + c->msg_no_subexp = count_subexp(&subexp_regex_comp, + argv[argcnt]); + p = ", message"; + opt_recent = 'm'; + m_processed = 1; + break; - if (regcomp(&c->host_exp, argv[argcnt], REG_EXTENDED) != 0) { + case 'h': + if (h_processed) { + m_dprintf(MSYSLOG_WARNING, "om_regex: h option " + "specified more than once, only first accepted\n"); + break; + } + c->filters |= OM_FILTER_HOST; - m_dprintf(MSYSLOG_SERIOUS, "om_regex: error compiling " - "regular expression [%s] for message\n", argv[argcnt]); - free(*ctx); + if (regcomp(&c->host_exp, argv[argcnt], REG_EXTENDED) != 0) { -return -1; - } + m_dprintf(MSYSLOG_SERIOUS, "om_regex: error compiling " + "regular expression [%s] for message\n", + argv[argcnt]); + free(*ctx); + return -1; + } - c->host_no_subexp = count_subexp(&subexp_regex_comp, argv[argcnt]); - p = ", host"; - opt_recent = 'h'; - h_processed = 1; - break; + c->host_no_subexp = count_subexp(&subexp_regex_comp, + argv[argcnt]); + p = ", host"; + opt_recent = 'h'; + h_processed = 1; + break; - case 's': - if (c->filters & OM_FILTER_INVERSE) { - m_dprintf(MSYSLOG_WARNING, "om_regex: error compiling " - "substitution incompatible with inverse regular expression\n"); - } - if (opt_recent == 0) { - m_dprintf(MSYSLOG_WARNING, "om_regex: " - "s option specified with no matching m or h option\n"); - break; - } + case 's': + if (c->filters & OM_FILTER_INVERSE) { + m_dprintf(MSYSLOG_WARNING, "om_regex: error compiling " + "substitution incompatible with inverse regular " + "expression\n"); + } + if (opt_recent == 0) { + m_dprintf(MSYSLOG_WARNING, "om_regex: s option " + "specified with no matching m or h option\n"); + break; + } - { - int no_subexp; - int max_subexp_no; - int *no_subst; - char ***non_subst; - int **subexp_no; + { + int no_subexp; + int max_subexp_no; + int *no_subst; + char ***non_subst; + int **subexp_no; - if (opt_recent == 'm') { - no_subexp = c->msg_no_subexp; - no_subst = &c->msg_no_subst; - non_subst = &c->msg_non_subst; - subexp_no = &c->msg_subexp_no; - } else { /* if (opt_recent == 'h') { */ - no_subexp = c->host_no_subexp; - no_subst = &c->host_no_subst; - non_subst = &c->host_non_subst; - subexp_no = &c->host_subexp_no; - } - parse_subst(&subst_regex_comp, argv[argcnt], no_subst, non_subst, subexp_no); + if (opt_recent == 'm') { + no_subexp = c->msg_no_subexp; + no_subst = &c->msg_no_subst; + non_subst = &c->msg_non_subst; + subexp_no = &c->msg_subexp_no; + } else { /* if (opt_recent == 'h') */ + no_subexp = c->host_no_subexp; + no_subst = &c->host_no_subst; + non_subst = &c->host_non_subst; + subexp_no = &c->host_subexp_no; + } + parse_subst(&subst_regex_comp, argv[argcnt], no_subst, + non_subst, subexp_no); - max_subexp_no = max_subexp(*subexp_no, *no_subst); + max_subexp_no = max_subexp(*subexp_no, *no_subst); - if (max_subexp_no > no_subexp) { - m_dprintf(MSYSLOG_SERIOUS, "om_regex: substitution pattern " - "references sub-expression [%d], max is [%d]\n", max_subexp_no, no_subexp); -return -1; - } - } - opt_recent = 0; + if (max_subexp_no > no_subexp) { + m_dprintf(MSYSLOG_SERIOUS, "om_regex: substitution " + "pattern references sub-expression [%d], max is " + "[%d]\n", max_subexp_no, no_subexp); + return -1; + } + } - c->filters |= OM_FILTER_SUBST; - p = ", subst"; - break; + opt_recent = 0; - default: - m_dprintf(MSYSLOG_SERIOUS, "om_regex: unknown parameter [%c]\n", ch); - free(*ctx); -return -1; + c->filters |= OM_FILTER_SUBST; + p = ", subst"; + break; - } /* END switch */ + default: + m_dprintf(MSYSLOG_SERIOUS, "om_regex: unknown parameter [%c]\n", + ch); + free(*ctx); + return -1; + } - if (p) { - statbuf_len += snprintf(statbuf + statbuf_len, sizeof(statbuf) - statbuf_len, - " %s [%s]", p, argv[argcnt]); - } + if (p) + statbuf_len += snprintf(statbuf + statbuf_len, + sizeof(statbuf) - statbuf_len, " %s [%s]", p, argv[argcnt]); - } /* END for */ + } /* END for(getxopt) */ *status = strdup(statbuf); |
From: <al...@us...> - 2002-10-01 16:33:40
|
Update of /cvsroot/msyslog/syslog/src In directory usw-pr-cvs1:/tmp/cvs-serv25605/src Modified Files: options.c Log Message: improve comment Index: options.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/options.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- options.c 17 Sep 2002 05:20:26 -0000 1.2 +++ options.c 1 Oct 2002 16:33:32 -0000 1.3 @@ -31,10 +31,8 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - /* * Modular Syslog generic module configuration functions - * * Author: Alejo Sanchez for Core-SDI */ @@ -48,9 +46,11 @@ * ease command line parsing for modules, similar to getopt(3) * use like this * + * prog <-p pvalue|-popt pvalue> <-n> <-h|-help> + * * int cnt = 0; * - * while ((ch = getxopt(argc, argv, "p!popt: n:nopt! h!help:", &cnt)) != -1) { + * while ((ch = getxopt(argc, argv, "p!popt: n!no h!help", &cnt)) != -1) { * switch (ch): * case 'p': * (void)strlcpy(argpval, argv[cnt], sizeof(argpval)); |
From: <al...@us...> - 2002-09-28 17:57:38
|
Update of /cvsroot/msyslog/msyslog In directory usw-pr-cvs1:/tmp/cvs-serv28365 Modified Files: Makefile.in TODO configure.ac Log Message: CoreSDI -> Id Index: Makefile.in =================================================================== RCS file: /cvsroot/msyslog/msyslog/Makefile.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.in 25 Oct 2001 05:22:08 -0000 1.2 +++ Makefile.in 28 Sep 2002 17:57:28 -0000 1.3 @@ -1,4 +1,4 @@ -# $CoreSDI: Makefile.in,v 1.1 2001/07/25 02:54:44 alejo Exp $ +# $Id$ # # Copyright (c) 2001, Core SDI S.A., Argentina # All rights reserved Index: TODO =================================================================== RCS file: /cvsroot/msyslog/msyslog/TODO,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- TODO 28 Oct 2001 22:22:56 -0000 1.56 +++ TODO 28 Sep 2002 17:57:28 -0000 1.57 @@ -1,4 +1,4 @@ -/* $CoreSDI: TODO,v 1.55 2001/10/28 22:18:00 alejo Exp $ */ +/* $Id$ */ FOR THIS RELEASE (2.0) Index: configure.ac =================================================================== RCS file: /cvsroot/msyslog/msyslog/configure.ac,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- configure.ac 28 Oct 2001 00:29:59 -0000 1.11 +++ configure.ac 28 Sep 2002 17:57:28 -0000 1.12 @@ -1,4 +1,4 @@ -# $CoreSDI: configure.ac,v 1.10 2001/10/28 00:02:34 alejo Exp $ +# $Id$ # # Copyright (c) 2001, Core SDI S.A., Argentina # All rights reserved |
From: <al...@us...> - 2002-09-28 17:57:38
|
Update of /cvsroot/msyslog/msyslog/src In directory usw-pr-cvs1:/tmp/cvs-serv28365/src Modified Files: Makefile.in daemon.c daemon.h modules.h msyslog.h Log Message: CoreSDI -> Id Index: Makefile.in =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/Makefile.in,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Makefile.in 29 Oct 2001 02:59:53 -0000 1.11 +++ Makefile.in 28 Sep 2002 17:57:29 -0000 1.12 @@ -1,4 +1,4 @@ -# $CoreSDI: Makefile.in,v 1.10 2001/10/28 02:13:48 alejo Exp $ +# $Id$ # # Copyright (c) 2001, Core SDI S.A., Argentina # All rights reserved Index: daemon.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/daemon.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- daemon.c 28 Oct 2001 04:14:53 -0000 1.24 +++ daemon.c 28 Sep 2002 17:57:29 -0000 1.25 @@ -1,4 +1,4 @@ -/* $CoreSDI: daemon.c,v 1.23 2001/10/28 04:13:19 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 @@ -329,7 +329,7 @@ { char copyright[] = "@(#) Copyright (c) 2001\n Core SDI S.A.. " "All rights reserved.\n"; - char rcsid[] = "$CoreSDI: daemon.c,v 1.23 2001/10/28 04:13:19 alejo Exp $"; + char rcsid[] = "$Id$"; fprintf(stderr, "Modular Syslog vesion " MSYSLOG_VERSION "\n\n" Index: daemon.h =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/daemon.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- daemon.h 28 Oct 2001 04:20:14 -0000 1.7 +++ daemon.h 28 Sep 2002 17:57:29 -0000 1.8 @@ -1,4 +1,4 @@ -/* $CoreSDI: daemon.h,v 1.6 2001/10/28 04:14:53 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: modules.h =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules.h,v retrieving revision 1.72 retrieving revision 1.73 diff -u -d -r1.72 -r1.73 --- modules.h 27 Oct 2001 04:00:50 -0000 1.72 +++ modules.h 28 Sep 2002 17:57:29 -0000 1.73 @@ -1,4 +1,4 @@ -/* $CoreSDI: modules.h,v 1.71 2001/10/25 05:22:08 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: msyslog.h =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/msyslog.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- msyslog.h 28 Oct 2001 21:49:36 -0000 1.22 +++ msyslog.h 28 Sep 2002 17:57:29 -0000 1.23 @@ -1,4 +1,4 @@ -/* $CoreSDI: msyslog.h,v 1.21 2001/10/27 04:00:50 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. |
From: <al...@us...> - 2002-09-28 17:57:38
|
Update of /cvsroot/msyslog/msyslog/doc In directory usw-pr-cvs1:/tmp/cvs-serv28365/doc Modified Files: CONFIGURATION INTERNALS Log Message: CoreSDI -> Id Index: CONFIGURATION =================================================================== RCS file: /cvsroot/msyslog/msyslog/doc/CONFIGURATION,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CONFIGURATION 25 Oct 2001 05:22:08 -0000 1.2 +++ CONFIGURATION 28 Sep 2002 17:57:29 -0000 1.3 @@ -1,5 +1,4 @@ -------------------------------------------------------------------------------- -$CoreSDI$ +$Id$ Copyright (c) 2001, Core SDI S.A., Argentina All rights reserved Index: INTERNALS =================================================================== RCS file: /cvsroot/msyslog/msyslog/doc/INTERNALS,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- INTERNALS 25 Oct 2001 05:22:08 -0000 1.21 +++ INTERNALS 28 Sep 2002 17:57:29 -0000 1.22 @@ -1,5 +1,4 @@ -------------------------------------------------------------------------------- -$CoreSDI: INTERNALS,v 1.20 2001/10/17 18:46:34 alejo Exp $ +$Id$ Copyright (c) 2001, Core SDI S.A., Argentina All rights reserved |
Update of /cvsroot/msyslog/msyslog/src/modules In directory usw-pr-cvs1:/tmp/cvs-serv28365/src/modules Modified Files: bsd.c file.c format.c linux.c net.c peo_vcr.c unix.c user.c Log Message: CoreSDI -> Id Index: bsd.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/bsd.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- bsd.c 25 Oct 2001 05:22:09 -0000 1.13 +++ bsd.c 28 Sep 2002 17:57:29 -0000 1.14 @@ -1,4 +1,4 @@ -/* $CoreSDI: bsd.c,v 1.12 2001/08/15 23:49:11 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: file.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/file.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- file.c 25 Oct 2001 05:22:10 -0000 1.14 +++ file.c 28 Sep 2002 17:57:29 -0000 1.15 @@ -1,4 +1,4 @@ -/* $CoreSDI: file.c,v 1.13 2001/08/15 23:51:08 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: format.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/format.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- format.c 25 Oct 2001 05:22:10 -0000 1.15 +++ format.c 28 Sep 2002 17:57:29 -0000 1.16 @@ -1,4 +1,4 @@ -/* $CoreSDI: format.c,v 1.14 2001/08/24 05:59:01 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: linux.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/linux.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- linux.c 25 Oct 2001 05:22:10 -0000 1.6 +++ linux.c 28 Sep 2002 17:57:29 -0000 1.7 @@ -1,4 +1,4 @@ -/* $CoreSDI: linux.c,v 1.5 2001/09/13 13:49:08 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: net.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/net.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- net.c 25 Oct 2001 05:22:10 -0000 1.10 +++ net.c 28 Sep 2002 17:57:29 -0000 1.11 @@ -1,4 +1,4 @@ -/* $CoreSDI: net.c,v 1.9 2001/09/13 13:49:08 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: peo_vcr.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/peo_vcr.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- peo_vcr.c 25 Oct 2001 05:22:10 -0000 1.19 +++ peo_vcr.c 28 Sep 2002 17:57:29 -0000 1.20 @@ -1,4 +1,4 @@ -/* $CoreSDI: peo_vcr.c,v 1.18 2001/08/07 16:33:31 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: unix.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/unix.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- unix.c 25 Oct 2001 05:22:10 -0000 1.33 +++ unix.c 28 Sep 2002 17:57:29 -0000 1.34 @@ -1,4 +1,4 @@ -/* $CoreSDI: unix.c,v 1.32 2001/08/07 16:33:31 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: user.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/modules/user.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- user.c 25 Oct 2001 05:22:10 -0000 1.14 +++ user.c 28 Sep 2002 17:57:29 -0000 1.15 @@ -1,4 +1,4 @@ -/* $CoreSDI: user.c,v 1.13 2001/08/07 16:33:32 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. |
From: <al...@us...> - 2002-09-28 17:57:38
|
Update of /cvsroot/msyslog/msyslog/src/engine In directory usw-pr-cvs1:/tmp/cvs-serv28365/src/engine Modified Files: comp.c engine.c Log Message: CoreSDI -> Id Index: comp.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/engine/comp.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- comp.c 28 Oct 2001 00:00:29 -0000 1.3 +++ comp.c 28 Sep 2002 17:57:29 -0000 1.4 @@ -1,4 +1,4 @@ -/* $CoreSDI: comp.c,v 1.2 2001/10/25 05:22:09 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: engine.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/engine/engine.c,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- engine.c 31 Oct 2001 18:50:42 -0000 1.79 +++ engine.c 28 Sep 2002 17:57:29 -0000 1.80 @@ -1,4 +1,4 @@ -/* $CoreSDI: engine.c,v 1.78 2001/10/29 08:22:43 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. |
From: <al...@us...> - 2002-09-28 17:57:38
|
Update of /cvsroot/msyslog/msyslog/src/examples In directory usw-pr-cvs1:/tmp/cvs-serv28365/src/examples Modified Files: example_module.c Log Message: CoreSDI -> Id Index: example_module.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/examples/example_module.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- example_module.c 25 Oct 2001 05:22:09 -0000 1.41 +++ example_module.c 28 Sep 2002 17:57:29 -0000 1.42 @@ -1,4 +1,4 @@ -/* $CoreSDI: example_module.c,v 1.40 2001/08/06 16:18:27 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. |
From: <al...@us...> - 2002-09-28 17:57:37
|
Update of /cvsroot/msyslog/msyslog/src/conf In directory usw-pr-cvs1:/tmp/cvs-serv28365/src/conf Modified Files: config.l config.y Log Message: CoreSDI -> Id Index: config.l =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/conf/config.l,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- config.l 15 Oct 2001 21:55:29 -0000 1.15 +++ config.l 28 Sep 2002 17:57:29 -0000 1.16 @@ -1,5 +1,5 @@ %{ -/* $CoreSDI: config.l,v 1.14 2001/10/11 19:39:51 alejo Exp $ */ +/* $Id$ */ /* Modular syslog configuration file lexical analyzer */ #include <stdlib.h> Index: config.y =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/conf/config.y,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- config.y 24 Oct 2001 11:00:30 -0000 1.45 +++ config.y 28 Sep 2002 17:57:29 -0000 1.46 @@ -1,5 +1,5 @@ %{ -/* $CoreSDI: config.y,v 1.44 2001/10/24 10:38:49 alejo Exp $ */ +/* $Id$ */ #include <stdio.h> |
From: <al...@us...> - 2002-09-28 17:57:37
|
Update of /cvsroot/msyslog/msyslog/src/generic In directory usw-pr-cvs1:/tmp/cvs-serv28365/src/generic Modified Files: crypto.c hash.c net.c options.c strings.c Log Message: CoreSDI -> Id Index: crypto.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/generic/crypto.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- crypto.c 27 Oct 2001 04:00:50 -0000 1.3 +++ crypto.c 28 Sep 2002 17:57:29 -0000 1.4 @@ -1,4 +1,4 @@ -/* $CoreSDI: crypto.c,v 1.2 2001/10/25 05:22:09 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: hash.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/generic/hash.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- hash.c 27 Oct 2001 04:00:50 -0000 1.3 +++ hash.c 28 Sep 2002 17:57:29 -0000 1.4 @@ -1,4 +1,4 @@ -/* $CoreSDI: hash.c,v 1.2 2001/10/25 05:22:09 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: net.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/generic/net.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- net.c 27 Oct 2001 04:00:50 -0000 1.15 +++ net.c 28 Sep 2002 17:57:29 -0000 1.16 @@ -1,4 +1,4 @@ -/* $CoreSDI: net.c,v 1.14 2001/10/25 05:22:09 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: options.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/generic/options.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- options.c 25 Oct 2001 05:22:09 -0000 1.4 +++ options.c 28 Sep 2002 17:57:29 -0000 1.5 @@ -1,4 +1,4 @@ -/* $CoreSDI: options.c,v 1.3 2001/08/17 11:41:44 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. Index: strings.c =================================================================== RCS file: /cvsroot/msyslog/msyslog/src/generic/strings.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- strings.c 27 Oct 2001 03:18:14 -0000 1.12 +++ strings.c 28 Sep 2002 17:57:29 -0000 1.13 @@ -1,4 +1,4 @@ -/* $CoreSDI: strings.c,v 1.11 2001/10/25 05:22:09 alejo Exp $ */ +/* $Id$ */ /* Copyright (c) 2001 Core-SDI S.A., all rights reserved. |
From: <al...@us...> - 2002-09-27 22:40:47
|
Update of /cvsroot/msyslog/syslog In directory usw-pr-cvs1:/tmp/cvs-serv374 Removed Files: ChangeLog Log Message: useless --- ChangeLog DELETED --- |
From: <al...@us...> - 2002-09-27 22:37:08
|
Update of /cvsroot/msyslog/syslog In directory usw-pr-cvs1:/tmp/cvs-serv31735 Modified Files: NEWS Log Message: reverse order Index: NEWS =================================================================== RCS file: /cvsroot/msyslog/syslog/NEWS,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- NEWS 17 Sep 2002 05:20:25 -0000 1.14 +++ NEWS 27 Sep 2002 22:37:05 -0000 1.15 @@ -1,14 +1,19 @@ /* $Id$ */ -1.0 Release Notes: +1.09 + * im_file module updated, introduces non-poll file + * im_serial module introduced + * im_directory module introduced + * im_regex handles substitution -* Move to autoconf -* Reorganize the source tree -* Fix an incorrect free that was causing syslogd to coredump on exit -* New om_regex module to filter and redirect depending on contents -* New im_linux for handling linux kernel logging (like klogd) -* PostgreSQL output module, colaboration from Oliver Teuber - (ot...@pe...) +1.03 + * initial port to AIX + * tcp modules + * debug levels + * reconnect on mysql/pgsql modules + +1.02 + * clean up for Linux 1.01 Release Notes: @@ -17,34 +22,12 @@ * multiple SQL module support * many bugfixes -1.02 - * clean up for Linux - -1.03 - * initial port to AIX - * tcp modules - * debug levels - * reconnect on mysql/pgsql modules - -1.04 - * automatically detect and compile modules - * major cleanup of code - * support of sysklogd's extensions - * lots of bugs squashed - * port to Irix - * finished port to AIX - * improvements on tcp modules - * pipe (fifo) support - * ansify code - * compatibility with other compilers (Irix, Aix) - * more information (ie filed and module status) - * IPv6 support - * better signal handlig with audit[d] - * poll() instead of select() - -1.09 - * im_file module updated, introduces non-poll file - * im_serial module introduced - * im_directory module introduced - * im_regex handles substitution +1.0 Release Notes: +* Move to autoconf +* Reorganize the source tree +* Fix an incorrect free that was causing syslogd to coredump on exit +* New om_regex module to filter and redirect depending on contents +* New im_linux for handling linux kernel logging (like klogd) +* PostgreSQL output module, colaboration from Oliver Teuber + (ot...@pe...) |
From: <al...@us...> - 2002-09-27 22:28:32
|
Update of /cvsroot/msyslog/syslog In directory usw-pr-cvs1:/tmp/cvs-serv29059 Modified Files: configure configure.in Log Message: 1.09c since 1.09b got busted Index: configure =================================================================== RCS file: /cvsroot/msyslog/syslog/configure,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- configure 27 Sep 2002 22:21:57 -0000 1.91 +++ configure 27 Sep 2002 22:28:29 -0000 1.92 @@ -3576,7 +3576,7 @@ CFLAGS="$CFLAGS -Wall" fi -MSYSLOG_VERSION="1.09b" +MSYSLOG_VERSION="1.09c" cat >>confdefs.h <<EOF #define MSYSLOG_VERSION_STR "$MSYSLOG_VERSION" Index: configure.in =================================================================== RCS file: /cvsroot/msyslog/syslog/configure.in,v retrieving revision 1.154 retrieving revision 1.155 diff -u -d -r1.154 -r1.155 --- configure.in 27 Sep 2002 22:21:57 -0000 1.154 +++ configure.in 27 Sep 2002 22:28:29 -0000 1.155 @@ -61,7 +61,7 @@ CFLAGS="$CFLAGS -Wall" fi -MSYSLOG_VERSION="1.09b" +MSYSLOG_VERSION="1.09c" AC_DEFINE_UNQUOTED(MSYSLOG_VERSION_STR, "$MSYSLOG_VERSION") echo msyslog version... $MSYSLOG_VERSION |
From: <al...@us...> - 2002-09-27 22:22:04
|
Update of /cvsroot/msyslog/syslog In directory usw-pr-cvs1:/tmp/cvs-serv27184 Modified Files: configure configure.in Log Message: bump 1.09b Index: configure =================================================================== RCS file: /cvsroot/msyslog/syslog/configure,v retrieving revision 1.90 retrieving revision 1.91 diff -u -d -r1.90 -r1.91 --- configure 24 Sep 2002 00:54:30 -0000 1.90 +++ configure 27 Sep 2002 22:21:57 -0000 1.91 @@ -3576,7 +3576,7 @@ CFLAGS="$CFLAGS -Wall" fi -MSYSLOG_VERSION="1.09a" +MSYSLOG_VERSION="1.09b" cat >>confdefs.h <<EOF #define MSYSLOG_VERSION_STR "$MSYSLOG_VERSION" Index: configure.in =================================================================== RCS file: /cvsroot/msyslog/syslog/configure.in,v retrieving revision 1.153 retrieving revision 1.154 diff -u -d -r1.153 -r1.154 --- configure.in 24 Sep 2002 00:54:30 -0000 1.153 +++ configure.in 27 Sep 2002 22:21:57 -0000 1.154 @@ -61,7 +61,7 @@ CFLAGS="$CFLAGS -Wall" fi -MSYSLOG_VERSION="1.09a" +MSYSLOG_VERSION="1.09b" AC_DEFINE_UNQUOTED(MSYSLOG_VERSION_STR, "$MSYSLOG_VERSION") echo msyslog version... $MSYSLOG_VERSION |