Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 05:40:02 -0700 (PDT)
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA
Message-ID:  <200108151240.f7FCe2802796@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/29699; it has been noted by GNATS.

From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To: Ruslan Ermilov <ru@FreeBSD.org>
Cc: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>,
	bug-followup@FreeBSD.org
Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA
Date: Wed, 15 Aug 2001 14:38:35 +0200

 On Wed, 15-Aug-2001 at 15:08:18 +0300, Ruslan Ermilov wrote:
 > 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 <andre.albsmeier@mchp.siemens.de>
 > > 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.
 
 It is curious: At home I am running a very recent FreeBSD 4.4-PRERELEASE:
 
 root@voyager:/usr/src/usr.sbin/sendmail>ll /usr/sbin/sendmail /usr/sbin/mailwrapper
 ls: /usr/sbin/mailwrapper: No such file or directory
 lrwxr-xr-x  1 root  wheel  - 21 Aug 15 14:22 /usr/sbin/sendmail@ -> /usr/sbin/mailwrapper
 root@voyager:/usr/src/usr.sbin/sendmail>make install
 install -c -s -o root -g wheel -m 4555   sendmail /usr/sbin
 install -c -o root -g wheel -m 444 mailq.1.gz  /usr/share/man/man1
 install -c -o root -g wheel -m 444 newaliases.1.gz  /usr/share/man/man1
 install -c -o root -g wheel -m 444 aliases.5.gz  /usr/share/man/man5
 install -c -o root -g wheel -m 444 sendmail.8.gz  /usr/share/man/man8
 root@voyager:/usr/src/usr.sbin/sendmail>ll /usr/sbin/sendmail /usr/sbin/mailwrapper
 -r-sr-xr-x  1 root  wheel  - 371756 Aug 15 14:23 /usr/sbin/mailwrapper*
 lrwxr-xr-x  1 root  wheel  -     21 Aug 15 14:22 /usr/sbin/sendmail@ -> /usr/sbin/mailwrapper
 
 
 Maybe you can reproduce the following on a recent FreeBSD 4.4-PRERELEASE:
 
 andre@voyager:~>which install
 /usr/bin/install
 andre@voyager:~>mkdir /tmp/try
 andre@voyager:~>cd /tmp/try 
 andre@voyager:/tmp/try>ln -s somefile ls
 andre@voyager:/tmp/try>ls -l
 total 0
 lrwxrwx---  1 andre  wheel  8 Aug 15 14:36 ls -> somefile
 andre@voyager:/tmp/try>cd /bin
 andre@voyager:/bin>install -c -s ls /tmp/try
 andre@voyager:/bin>cd /tmp/try 
 andre@voyager:/tmp/try>ls -l
 total 288
 lrwxrwx---  1 andre  wheel       8 Aug 15 14:36 ls -> somefile
 -rwxr-xr-x  1 andre  wheel  284020 Aug 15 14:36 somefile
 andre@voyager:/tmp/try>
 
 
 	-Andre

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108151240.f7FCe2802796>