Hello.
It seems as if the config reading have changed for snmptrapd recently.
This caused the Print flag not to be set which in turn made some
testcases fail. The attached patch papers over it by writing the logs
if the Log flag is set as well.
Index: apps/snmptrapd.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/apps/snmptrapd.c,v
retrieving revision 5.35
diff -c -r5.35 snmptrapd.c
*** apps/snmptrapd.c 20 Aug 2004 08:53:02 -0000 5.35
--- apps/snmptrapd.c 24 Aug 2004 05:51:56 -0000
***************
*** 1118,1124 ****
#endif
while (running) {
if (reconfig) {
! if (Print) {
struct tm *tm;
time_t timer;
time(&timer);
--- 1118,1124 ----
#endif
while (running) {
if (reconfig) {
! if (Print || Log) {
struct tm *tm;
time_t timer;
time(&timer);
***************
*** 1179,1185 ****
run_alarms();
}
! if (Print) {
struct tm *tm;
time_t timer;
time(&timer);
--- 1179,1185 ----
run_alarms();
}
! if (Print || Log) {
struct tm *tm;
time_t timer;
time(&timer);