CVSROOT:        /cvs
Module name:    src
Changes by:     gil...@cvs.openbsd.org  2012/07/29 11:21:44

Modified files:
        usr.sbin/smtpd : aliases.c lka_session.c makemap.c smtpd.h 
                         util.c 

Log message:
- introduce xlowercase() and allow lowercase() to fail gracefully
- replace all calls to lowercase() with calls to xlowercase()
- in the format string expansion, lowercase() all formats

we will have to reassess all calls to xlowercase() even though it has never
triggered as far as I know, we can probably gracefully fail some of them.
right now we're just keeping former behaviour.

this commit fixes issue reported by Hugo Osvaldo Barrera where a %u format
could lead to a delivery failure (ie: gil...@openbsd.org should be expanded
to gilles, not GILLES ... only for local deliveries).

ok chl@ on the idea, ok eric@ on the diff

Reply via email to