[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system/3720: spamd command line parsing problem



>Number:         3720
>Category:       system
>Synopsis:       it seems impossible to specify a version banner containing spaces with -n in rc.conf
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 18 19:40:01 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Nikolay Sturm
>Release:        -current
>Organization:
net
>Environment:
	
	System      : OpenBSD 3.5
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
	
Specifying an SMTP version banner containing spaces in rc.conf, like "-n foo bar"
breaks options parsing in spamd for all versions of quoting that I could think
of, i.e. "-n 'foo bar'", "-n \"foo bar\""... The bad thing is, that "-g" is added
as last command line option, thus in this case spamd will *not* do greylisting.
>How-To-Repeat:
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
 >how-to-repeat:
 in /etc/rc.conf set
 
 spamd_flags="-n 'foo bar'"
 spamd_grey=YES
 
 kill spamd and (restart machine or run /etc/rc)