[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/log.c between version 1.39 and 1.40

version 1.39, 2006/08/18 09:13:25 version 1.40, 2007/05/17 07:50:31
Line 42 
Line 42 
 #include <string.h>  #include <string.h>
 #include <syslog.h>  #include <syslog.h>
 #include <unistd.h>  #include <unistd.h>
   #include <errno.h>
 #include <vis.h>  #include <vis.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
Line 277 
Line 278 
         char fmtbuf[MSGBUFSIZ];          char fmtbuf[MSGBUFSIZ];
         char *txt = NULL;          char *txt = NULL;
         int pri = LOG_INFO;          int pri = LOG_INFO;
           int saved_errno = errno;
   
         if (level > log_level)          if (level > log_level)
                 return;                  return;
Line 330 
Line 332 
                 syslog_r(pri, &sdata, "%.500s", fmtbuf);                  syslog_r(pri, &sdata, "%.500s", fmtbuf);
                 closelog_r(&sdata);                  closelog_r(&sdata);
         }          }
           errno = saved_errno;
 }  }

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40