sendmail tried to limit directory names to MAXPATHLEN - MAXNAMLEN in an
commit2d9e24650d07c7a77ee22685f6f689cb2395772c
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 15:28:06 +0000 (23 15:28 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 15:28:06 +0000 (23 15:28 +0000)
tree8e124ded86469fc0329abbe7ed2369cc5772e520
parent30d7606e38e76bb29f44316375512c72efcb5c95
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]