CVSROOT: /cvs Module name: src Changes by: su...@cvs.openbsd.org 2016/02/11 20:11:16
Modified files: usr.sbin/smtpd : makemap.c smtpctl.c Log message: Cleanup getopt(3) mis-use in sendmail compat code. Avoid multiple getopt(3) evaluations without optreset set and unspecified behavior of optind = 0 as per POSIX. Instead, iterate over argv the first time for classification. Fixes -portable without any divergence from -current, and all newaliases opts are handled in one place. Looks good to me millert@ Ok gilles@ jung@ eric@