This patch adds support for PATH, but it also removes the fixed paths. On many systems, unprivileged users don't have /usr/sbin in their PATH, and I know of no systems which provide /usr/lib as a PATH value. Therefore, it's possible that this change will break automatic detection of sendmail for many users. I think what you probably want to do is use entries in PATH first, and leave the two old values as backups at the end.
You're perfectly right - forgot about /usr/sbin not in PATH for unprivileged users. Will send a new patch which appends to the original list.
Attachment:
signature.asc
Description: PGP signature