nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] what is --nofollow good for?


From: Benno Schulenberg
Subject: Re: [Nano-devel] what is --nofollow good for?
Date: Thu, 28 Jan 2016 19:54:00 +0100

On Thu, Jan 28, 2016, at 17:47, Mike Frysinger wrote:
> On 28 Jan 2016 10:01, Benno Schulenberg wrote:
> > So this hasn't been working for at least twelve years.
> > (And why should it?  If they want the symlink gone, they
> > can simply delete it beforehand.  Why should nano do the
> > work for them?)
> 
> because when you try to edit files in dirs that others have access to,
> you want to make sure a save operation does not get redirected to a
> place you did not intend.  simply saying "if there's a symlink, you
> should delete it first" doesn't help.

Okay.  However, if the current code were working correctly,
then there is a little time between the unlink of the symlink
and the open(O_WRONLY | O_CREAT | O_TRUNC) of the file to be
written.  So there is a window for someone to quickly recreate
the symlink.  So --nofollow would give a false sense of security.

Also, is there any other editor that has this feature: overwrite
symlinks instead of following them?

Benno

-- 
http://www.fastmail.com - The way an email service should be




reply via email to

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