CVSROOT: /cvs Module name: src Changes by: gil...@cvs.openbsd.org 2012/08/26 05:52:48
Modified files: usr.sbin/smtpd : compress_zlib.c smtpd.c smtpd.h util.c Log message: - define ZLIB_BUFFER_SIZE instead of hardcoding 8192 - check gzdopen() failure - call gzclose() whenever a failure occurs after gzdopen() - simplify slightly some checks in compress/uncompress - create PATH_TEMPORARY in /var/spool/smtpd, chmod 700, owned by _smtpd - compress_zlib should use PATH_TEMPORARY instread of /tmp as we're chrooted and this will otherwise lead to a fatal() ok chl@