From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#27871: [PATCH] Treat unreachable current directory as error Date: Sun, 08 Oct 2017 14:56:11 +0000 Message-ID: References: <20170930185006.54096-1-phst@google.com> <9b7b9905-dc97-feb4-9569-27372b1c6b5d@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113779eafbb1d8055b0a4601" X-Trace: blaine.gmane.org 1507474635 626 195.159.176.226 (8 Oct 2017 14:57:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 14:57:15 +0000 (UTC) Cc: Philipp Stephani To: Paul Eggert , 27871@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 08 16:57:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1D0q-0007AE-MY for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 16:57:04 +0200 Original-Received: from localhost ([::1]:53986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1D0y-0008C9-2j for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 10:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1D0s-0008Bt-Ba for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1D0o-0004cC-3p for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1D0n-0004c8-W2 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1D0n-00044D-MC for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 10:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2017 14:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27871-submit@debbugs.gnu.org id=B27871.150747459015584 (code B ref 27871); Sun, 08 Oct 2017 14:57:01 +0000 Original-Received: (at 27871) by debbugs.gnu.org; 8 Oct 2017 14:56:30 +0000 Original-Received: from localhost ([127.0.0.1]:56499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1D0I-00043I-Hg for submit@debbugs.gnu.org; Sun, 08 Oct 2017 10:56:30 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:55092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1D0G-000434-0H for 27871@debbugs.gnu.org; Sun, 08 Oct 2017 10:56:28 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id u130so36077671oib.11 for <27871@debbugs.gnu.org>; Sun, 08 Oct 2017 07:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IRBwRB7h7jdPughVaUfdDSxAkN9u7lE7HweH1/oG8EY=; b=ju3szZ2gtBFzKR3NNIE8/iEwXeGy3JzISNcUAfU45Fwlo6u15BUmg8RbIKW5R504TE SWF0ZpIbS0T/19AVCfJYhZHkAs/p/6bCEROF8bFl7ZSSGSkii207skMYeKp0QfukMVYN 3vOBqB0uDwQ7Q7vDKEZN6bAZb0NUMH9+bnxQ1eNX2ICxrcgxmBXW2TPeU2Tzqa9BS2ub vsQxAXBTrXXog0ooZY5KFCFuFsg2Z5H2F6iANUD3egUnRB/SHR0PMSaoFk352/0exE78 Moy+4lSpfxmp9HtZ3tWWF6/iTMJnWaPUnbxPfwKKDtlQgThOXQM6N+eWBd9nvC9VK88M Y8PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IRBwRB7h7jdPughVaUfdDSxAkN9u7lE7HweH1/oG8EY=; b=WbojZLjk56cXMt+/poshpRYSRdpXF7ojD5vKjmT6x6mnW1KqPiRHh30IjCaWEAdE2J RQ2R6rxOdCD4bVXbaNhTvuJH/Vj12jtFKhJIKKvIxz7uMmBo4iDuD17+pXoZVcOGlJ1i qx55boINwxeif8ow4xd11cJXw9RdJGhRqtE7bGn0+Fo5EVruV5dYAVpEsSMNsO5YIMhk 2maGZtNZLt85tLA/cOjc2Hhuux52QvejjNLBRBv5kjizjv5jsgnHCXTFNOBE4WPdHt0/ 3HsFu8Awn2Q5DcfZuj8O4JCCpX88je8DR/8yerNPrkdeMsaZttGaYm+NWOKG3vfVzChU wQLw== X-Gm-Message-State: AMCzsaXgPwyChjUF0ZxQHZ4BgU5e21FQbRTUo53urdrlfZdTqd3WVHEg 1bBjYRuqKsnQESSCHYu+IEGE11D5dBV1mOCtek4= X-Google-Smtp-Source: AOwi7QAtTvP2zvXTomFYywrsOeu/0sT/2+7N0vpDNABdsvPCrpbSQYv/QdhRqLx5PcXsVISN1gEo68PvDy4gj+D9mEI= X-Received: by 10.157.59.55 with SMTP id z52mr4144733otb.75.1507474582252; Sun, 08 Oct 2017 07:56:22 -0700 (PDT) In-Reply-To: <9b7b9905-dc97-feb4-9569-27372b1c6b5d@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138076 Archived-At: --001a113779eafbb1d8055b0a4601 Content-Type: text/plain; charset="UTF-8" Paul Eggert schrieb am So., 8. Okt. 2017 um 08:06 Uhr: > Philipp Stephani wrote: > > All of the current directory functions exhibit this behavior, including > > getwd and getcwd, so you need to make sure they are also covered. > > Thanks for letting us know. I installed the 2nd attached patch, which > addresses > this by making the patch behave more like what you originally proposed, > while > still avoiding the need to use file_name_absolute_p (which is about Emacs > file > names, not OS names). > That should work, thanks. FTR, this behavior is documented in the Linux manpage: http://man7.org/linux/man-pages/man2/getcwd.2.html --001a113779eafbb1d8055b0a4601 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Paul E= ggert <eggert@cs.ucla.edu> = schrieb am So., 8. Okt. 2017 um 08:06=C2=A0Uhr:
Philipp Stephani wrote:
> All of the current directory functions exhibit this behavior, includin= g
> getwd and getcwd, so you need to make sure they are also covered.

Thanks for letting us know. I installed the 2nd attached patch, which addre= sses
this by making the patch behave more like what you originally proposed, whi= le
still avoiding the need to use file_name_absolute_p (which is about Emacs f= ile
names, not OS names).

That should work= , thanks. FTR, this behavior is documented in the Linux manpage:=C2=A0http://man7.org/l= inux/man-pages/man2/getcwd.2.html=C2=A0
--001a113779eafbb1d8055b0a4601--