[BACK]Return to syslogd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.sbin / syslogd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.sbin/syslogd/syslogd.c between version 1.112 and 1.112.2.2

version 1.112, 2012/06/20 01:39:34 version 1.112.2.2, 2013/06/23 06:29:06
Line 2496  udp_send(struct filed *f, char *line, si
Line 2496  udp_send(struct filed *f, char *line, si
         for (r = f->f_un.f_forw.f_addr; r; r = r->ai_next) {          for (r = f->f_un.f_forw.f_addr; r; r = r->ai_next) {
                 retry = 0;                  retry = 0;
                 for (j = 0; j < finet->fd; j++) {                  for (j = 0; j < finet->fd; j++) {
                           if (finet[j+1].af != r->ai_family)
                                   continue;
 sendagain:  sendagain:
                         lsent = sendto(finet[j+1].fd, line, len, 0,                          lsent = sendto(finet[j+1].fd, line, len, 0,
                             r->ai_addr, r->ai_addrlen);                              r->ai_addr, r->ai_addrlen);
Line 2562  wallmsg(struct filed *f, struct iovec *i
Line 2564  wallmsg(struct filed *f, struct iovec *i
                         if (!f->f_un.f_uname[i][0])                          if (!f->f_un.f_uname[i][0])
                                 break;                                  break;
                         if (strcmp(f->f_un.f_uname[i], ep->name) == 0) {                          if (strcmp(f->f_un.f_uname[i], ep->name) == 0) {
                                   struct stat st;
                                   char tty[MAXPATHLEN];
                                   snprintf(tty, sizeof(tty), "%s/%s", _PATH_DEV,
                                       ep->line);
                                   if (stat(tty, &st) != -1 &&
                                       (st.st_mode & S_IWGRP) == 0)
                                           break;
   
                                 if ((p = ttymsg(iov, iovcnt, ep->line,                                  if ((p = ttymsg(iov, iovcnt, ep->line,
                                     TTYMSGTIME)) != NULL) {                                      TTYMSGTIME)) != NULL) {
                                         errno = 0;      /* already in msg */                                          errno = 0;      /* already in msg */
Line 3986  socksetup(int af, const char *hostname)
Line 3996  socksetup(int af, const char *hostname)
                         logerror("socket() failed");                          logerror("socket() failed");
                         continue;                          continue;
                 }                  }
                   s->af = r->ai_family;
                 if (r->ai_family == AF_INET6 && setsockopt(s->fd, IPPROTO_IPV6,                  if (r->ai_family == AF_INET6 && setsockopt(s->fd, IPPROTO_IPV6,
                     IPV6_V6ONLY, &on, sizeof(on)) < 0) {                      IPV6_V6ONLY, &on, sizeof(on)) < 0) {
                         logerror("setsockopt(IPV6_V6ONLY) failed");                          logerror("setsockopt(IPV6_V6ONLY) failed");

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.112.2.2

CVSweb <webmaster@jp.NetBSD.org>