From owner-freebsd-bugs Wed Aug 15 5:10:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3A36C37B401 for ; Wed, 15 Aug 2001 05:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7FCA1599098; Wed, 15 Aug 2001 05:10:01 -0700 (PDT) (envelope-from gnats) Date: Wed, 15 Aug 2001 05:10:01 -0700 (PDT) Message-Id: <200108151210.f7FCA1599098@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/29699; it has been noted by GNATS. From: Ruslan Ermilov To: Andre Albsmeier Cc: bug-followup@FreeBSD.org Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Date: Wed, 15 Aug 2001 15:08:18 +0300 On Tue, Aug 14, 2001 at 11:50:01AM -0700, Andre Albsmeier wrote: > The following reply was made to PR conf/29699; it has been noted by GNATS. > > From: Andre Albsmeier > To: freebsd-gnats-submit@FreeBSD.org > Cc: > Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA > Date: Tue, 14 Aug 2001 20:42:44 +0200 > > One more thing I noticed here: When using the above Makefile and > NO_MAILWRAPPER is set and the link /usr/sbin/sendmail -> > /usr/sbin/mailwrapper exists, sendmail gets installed as > /usr/sbin/mailwrapper: > > andre@voyager:/usr/sbin>ll sendmail mailwrapper > -r-sr-xr-x 1 root wheel - 371756 Aug 14 20:35 mailwrapper* > lrwxr-xr-x 1 root wheel - 21 Aug 14 20:34 sendmail@ -> /usr/sbin/mailwrapper > Hmm, I can't reproduce it here. Make sure you haven't mistyped -DNO_MAILWRAPPER. > I don't understand this since man install says: > > -S Safe copy. Normally, install unlinks an existing target before > installing the new file. With the -S flag a temporary file is > used and then renamed to be the target. The reason this is safer > is that if the copy or rename fails, the existing target is left > untouched. > > The -S option is not used during the install, so the file should get > unlinked before but this is obviously not the case. I have helped myself > with the following, additional path to usr.sbin/sendmail/Makefile: > Even with -S, symlink gets deleted before the new one is installed. I have even checked with pre -S version of install(1), just to make sure. Everything works as expected, symlink gets deleted first. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message