sendmail tried to limit directory names to MAXPATHLEN - MAXNAMLEN in an
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 15:28:06 +0000 (15:28 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 15:28:06 +0000 (15:28 +0000)
commit6d1607664dbe8ff610f1c84563f905abacbe8953
tree417e9831732680aa7bf21290cb11b6c4f96dbc17
parent84f8e7a967324efbd99d69565624f481ce735b01
sendmail tried to limit directory names to MAXPATHLEN - MAXNAMLEN in an
attempt to bound the size of full path names. This is bogus, because
most directory entries are much shorter than MAXNAMLEN and some
filesystems might allow longer path names than MAXNAMLEN. Change the
logic to bound all path names to PATH_MAX by checking the return values
of sm_strlcpy.
usr.sbin/sendmail/Makefile
usr.sbin/sendmail/mci.c.patch [new file with mode: 0644]