File xinetd-2.3.15-allow-single-log-only.patch of Package xinetd.5736

Index: xinetd-2.3.15/xinetd/parsers.c
===================================================================
--- xinetd-2.3.15.orig/xinetd/parsers.c
+++ xinetd-2.3.15/xinetd/parsers.c
@@ -955,6 +955,11 @@ status_e log_type_parser( pset_h values,
       missing_attr_msg(func, "log_type");
       return( FAILED );
    }
+
+   if ( LOG_GET_TYPE( lp ) != L_NONE) {
+      parsemsg( LOG_ERR, func, "Cannot set more than one log_type attribute");
+      return( FAILED );
+   }
    
    type = (char *) pset_pointer( values, 0 ) ;
 
Index: xinetd-2.3.15/xinetd/xinetd.conf.man
===================================================================
--- xinetd-2.3.15.orig/xinetd/xinetd.conf.man
+++ xinetd-2.3.15/xinetd/xinetd.conf.man
@@ -303,7 +303,7 @@ be accepted at the bounds of an interval
 minutes from 0 to 59.
 .TP
 .B log_type
-determines where the service log output is sent. There are two formats:
+determines where the service log output is sent. Select just one of the two formats:
 .RS
 .TP
 .B SYSLOG " \fIsyslog_facility [syslog_level]\fP"
openSUSE Build Service is sponsored by