bug#12366: [gnu-prog-discuss] bug#12366: Writing unwritable files

2012-09-06 Thread John Darrington
On Thu, Sep 06, 2012 at 11:23:21AM -0700, Paul Eggert wrote: On 09/06/2012 10:35 AM, Bernhard Voelker wrote: > Why can't 'sed -i' be made atomic for the user? > Today, it creates a temporary file for the output. > At the end, it calls rename(). What if it instead > rewinds

Re: shred command. Autodetect file type

2006-12-04 Thread John Darrington
On Fri, Dec 01, 2006 at 03:59:40PM +0100, Alfred M. Szmidt wrote: if --remove (-u) is specified. The default is not to remove the files because it is common to operate on device files like /dev/hda, and those files usually should not be removed. When operating on r

shred command. Autodetect file type

2006-12-01 Thread John Darrington
if --remove (-u) is specified. The default is not to remove the files because it is common to operate on device files like /dev/hda, and those files usually should not be removed. When operating on regular files, most people use the --remove option. Why not use the stat system call to f