bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install.c: please set unlink_dest_before_opening=false


From: Robert Millan [ackstorm]
Subject: Re: install.c: please set unlink_dest_before_opening=false
Date: Thu, 22 Feb 2007 09:59:23 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Feb 21, 2007 at 04:15:45PM -0800, Paul Eggert wrote:
> "Robert Millan [ackstorm]" <address@hidden> writes:
> 
> > On Tue, Feb 20, 2007 at 03:19:57PM -0800, Paul Eggert wrote:
> >> "Robert Millan [ackstorm]" <address@hidden> writes:
> >> 
> >> > I haven't checked POSIX though, but if this is actualy a requirement
> >> > maybe a POSIX_ME_HARDER hack would make sense here?
> >> 
> >> POSIX makes no requirement.  Other implementations are all over the
> >> map here, so I suppose we can do what is more convenient.
> >
> > Well of course I believe my proposal is more convenient, but I have yet
> > to hear a counter-argument.  I take it this hasn't been discussed before?
> 
> It probably has....
> 
> An argument for the current behavior of breaking the link is that many
> systems don't let you write files that are currently being executed.

How about attempting to write it, and if that fails then unlink ? (preferably
checking the errno code for this condition)

-- 
Robert Millan

ACK STORM, S.L.  -  http://www.ackstorm.es/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]