blob: 0eb9258666a8bcb5a1fba2a79c5c9763113b2cae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- popper/main.c.orig Thu Jan 2 00:38:40 2003
+++ popper/main.c Tue Dec 14 11:32:49 2004
@@ -343,6 +343,24 @@
trace_name, fileno(trace_file) );
break;
+ case 'y': /* log facility */
+ {
+ POP config;
+ POP *p = &config;
+ if ( set_option ( p, "log-facility", optarg ) == POP_SUCCESS ) {
+ closelog();
+#ifdef SYSLOG42
+ openlog ( pname, 0 );
+#else
+ openlog ( pname, POP_LOGOPTS, p->log_facility );
+#endif
+ } else {
+ fprintf ( stderr, "Error setting '-y' to %s\n", optarg );
+ return 1;
+ }
+ }
+ break;
+
default:
break;
}
|