nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] Patch for bug #44950


From: Rishabh Dave
Subject: Re: [Nano-devel] Patch for bug #44950
Date: Thu, 17 Dec 2015 16:02:14 +0530

I am very sorry for being so incorrect. My juvenile
excitement to contribute made me hasteful and
careless. I only checked if the altered version
works as I wanted over invalid filenames and
non-existent folders.

Thanks for your patience and, once again, sorry for
the inconvenience.

On Thu, Dec 17, 2015 at 12:58 AM, Benno Schulenberg <address@hidden> wrote:

Hi Rishabh,

On Wed, Dec 16, 2015, at 19:10, Rishabh Dave wrote:
> I guess this patch, at least this time :D , should work well
> for invalid filenames and non-existing directories.

Thanks for the patch.  However... it doesn't work.

Running 'src/nano doc/frap' says:
[ Invalid filename. Save under different name. ]

But it is a perfectly valid file and directory name;
it's just a new file.

Running 'src/nano woooo/frap' still says:
[ Error writing lock file: Directory 'woooo' doesn't exist ]

It should just say that the directory does not exist,
that is: the last part of the message.  It shouldn't
attempt to write a lock file in a non-existent dir.

> I have
> tried following use cases under my working directory which
> was nano-2.5.0.

Ehm...?  Which use cases?

> It basically detects them by counting number of slashes.

Hmm.  This doesn't sound like a good method.  I would
expect the code doing a stat on the part before the last
slash in the given filename.

Benno

--
http://www.fastmail.com - Accessible with your email software
                          or over the web



reply via email to

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