[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Checking permissions before opening file
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] Checking permissions before opening file |
Date: |
Tue, 26 Jan 2016 21:03:31 +0100 |
On Mon, Jan 25, 2016, at 20:17, Rishabh Dave wrote:
> Replaced stat() by access() - which is in unistd.h - to check accessibility
> of path.
Brrr... Thanks for the patch, but... you make a mess of the
indentation. Apparently somehow your editor changes tabs
to four spaces. Please don't do that. Leave tabs be tabs.
Attached is what your patch should have looked like. Use
nano and Alt+P to inspect it. And then your own, and see
the difference.
> However, this replacement doesn't affect the case 'src/nano
> /root/.nano/yuhu'.
That's fine. The precise message is not important, as long
as it's true.
Benno
--
http://www.fastmail.com - Access your email from home and the web
inaccessible.patch
Description: Text Data