Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 1995 16:41:37 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        joerg@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-usrbin@freefall.cdrom.com
Subject:   Re: cvs commit: src/usr.bin/xinstall xinstall.c
Message-ID:  <199508052341.QAA03188@gndrsh.aac.dev.com>
In-Reply-To: <199508050116.LAA26907@godzilla.zeta.org.au> from "Bruce Evans" at Aug 5, 95 11:16:38 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >>   Modified:    usr.bin/xinstall  xinstall.c
> >>   Log:
> >>   Make install not remove the target file if -s has been specified but
> >>   stripping failed (since the file has been a shell script, for
> >>   example).
> 
> >Ignoring error conditions from strip is not a good idea.  Using -s option
> >to install non binary files is a usage error.  
> 
> I thought the patch in the PR was so obviously wrong that it wouldn't be
> applied.

Me too.  Next time I know, I will state that this is the wrong thing to
do when I see these PR's like this :-(.

> >Removing the file if strip failed is probably not the right thing to
> 
> `install' has already unlinked the original file so there's nothing better
> to do than to remove the results of the usage error.

Humm.. can install open the file before it is unlinked, unlink it, try
the install and if it fails some how relink the open file?  [I am not
much on this type of user land operation, so I am not sure if you can
do that :-)]

> 
> >do, but being silent about strip errors is not a good idea.
> 
> Yes.

:-)


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                 Reliable computers for FreeBSD



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