bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27871: [PATCH] Treat unreachable current directory as error


From: Paul Eggert
Subject: bug#27871: [PATCH] Treat unreachable current directory as error
Date: Sat, 30 Sep 2017 17:00:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Philipp Stephani wrote:

+  if (!file_name_absolute_p (dir))

That doesn't look right here, since leading '~' counts as absolute to file_name_absolute_p, which is not what is wanted here.

+      errno = ENOTCONN;

Why ENOTCONN? Shouldn't it be ENOENT? The failure has nothing to do with socket connections.

Also, I'd feel a bit better if we apply the workaround only to the function that has the problem.

How about the attached patch instead?

Attachment: 0001-Fix-bug-with-unmounted-directory-on-GNU-Linux.patch
Description: Text Data


reply via email to

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