Changeset 537 in openpam
- Timestamp:
- 03/31/12 16:20:13 (14 months ago)
- File:
-
- 1 edited
-
trunk/lib/openpam_log.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/openpam_log.c
r523 r537 40 40 #endif 41 41 42 #include < ctype.h>42 #include <errno.h> 43 43 #include <stdarg.h> 44 44 #include <stdio.h> 45 45 #include <stdlib.h> 46 #include <string.h>47 46 #include <syslog.h> 48 47 … … 102 101 char *format; 103 102 int priority; 103 int serrno; 104 104 105 105 switch (level) { … … 121 121 } 122 122 va_start(ap, fmt); 123 serrno = errno; 123 124 if (asprintf(&format, "in %s(): %s", func, fmt) > 0) { 125 errno = serrno; 124 126 vsyslog(priority, format, ap); 125 127 FREE(format); 126 128 } else { 129 errno = serrno; 127 130 vsyslog(priority, fmt, ap); 128 131 }
Note: See TracChangeset
for help on using the changeset viewer.