GNU bug report logs - #12366
[gnu-prog-discuss] Writing unwritable files

Previous Next

Package: coreutils;

Reported by: Paolo Bonzini <bonzini <at> gnu.org>

Date: Thu, 6 Sep 2012 12:14:01 UTC

Severity: normal

Done: Jim Meyering <meyering <at> hx.meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #53 received at 12366 <at> debbugs.gnu.org (full text, mbox):

From: Paolo Bonzini <bonzini <at> gnu.org>
To: Bob Friesenhahn <bfriesen <at> simple.dallas.tx.us>
Cc: 12366 <at> debbugs.gnu.org, gnu-prog-discuss <at> gnu.org
Subject: Re: [gnu-prog-discuss] bug#12366:  Writing unwritable files
Date: Thu, 06 Sep 2012 23:01:37 +0200
Il 06/09/2012 20:21, Bob Friesenhahn ha scritto:
>>
>> No, unlink/rename "sed -i" replaces the file atomically.  A program that
> 
> POSIX rename assures that the destination path always exists if it
> already existed.

My bad, I meant link-breaking/rename.  Of course you must not unlink first.

Paolo




This bug report was last modified 12 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.