summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-07-23 02:19:02 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-07-23 02:19:02 +0000
commit054d1f29d9c361a2402fcc835954cd9230708910 (patch)
tree5e275b6954fb8b35b18e99e0d577d54900b8e73a /etc/mail
parentcef3dba0893fdee1777990d6d8095fb0dce67752 (diff)
downloadFreeBSD-src-054d1f29d9c361a2402fcc835954cd9230708910.zip
FreeBSD-src-054d1f29d9c361a2402fcc835954cd9230708910.tar.gz
If the user sets SENDMAIL_MC to /etc/mail/sendmail.mc, install is told to
install /etc/mail/sendmail.cf to /etc/mail/sendmail.cf and exits with an error: ===> etc/sendmail install -c -o root -g wheel -m 644 /etc/mail/sendmail.cf /etc/mail/sendmail.cf install: /etc/mail/sendmail.cf and /etc/mail/sendmail.cf are the same file *** Error code 64 Catch this in the Makefile and don't call install if the source and target are the same file. Reported by: Alexandr Listopad <laa@reis.zp.ua> MFC after: 1 week
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 833b45f..fed02d3 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -153,7 +153,9 @@ maps: ${SENDMAIL_MAP_OBJ}
aliases: ${SENDMAIL_ALIASES}.db
install: ${INSTALL_CF}
+.if ${INSTALL_CF} != /etc/mail/sendmail.cf
${INSTALL} -c -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf
+.endif
start:
(. /etc/defaults/rc.conf; source_rc_confs; \
OpenPOWER on IntegriCloud