Re: [dev] why avoid install?

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Wed, 19 Nov 2014 21:16:52 +0100

On Wed, Nov 19, 2014 at 04:41:39PM +0100, Anselm R Garbe wrote:
> On 18 November 2014 19:25, Greg Reagle <greg.reagle_AT_umbc.edu> wrote:
> > Hello. Is there a particular reason that a combination of cp, mkdir,
> > and chmod are used rather than the install command, in several suckless
> > projects (in the install target of Makefile)?
>
> To me the answer is rather obvious. install violates the Unix
> principle, because it does too many things, that are achieved already
> by cp, mkdir, chmod, etc.

The problem with this is that it obviously has race conditions which
might or might not be security relevant. Getting a file descriptor and
then performing the desired operations doesn't sound like such a bad
idea ...

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
Received on Wed Nov 19 2014 - 21:16:52 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 19 2014 - 21:24:20 CET