From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: spucci Newsgroups: gmane.emacs.bugs Subject: bug#8035: Processing of .. in a file path after going thru symlink Date: Sun, 13 Feb 2011 19:05:40 -0800 (PST) Message-ID: <30918394.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297663698 16584 80.91.229.12 (14 Feb 2011 06:08:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 06:08:18 +0000 (UTC) To: 8035@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 14 07:08:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PorbW-0006vH-N5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 07:08:11 +0100 Original-Received: from localhost ([127.0.0.1]:41299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PorbV-0001DG-3e for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 01:08:09 -0500 Original-Received: from [140.186.70.92] (port=53254 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PorZs-0000Tg-5e for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 01:06:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PorZq-0006x2-Qa for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 01:06:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PorZq-0006wy-Nw for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 01:06:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PorJz-0001cO-LR; Mon, 14 Feb 2011 00:50:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: spucci Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Feb 2011 05:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8035 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12976625976192 (code B ref -1); Mon, 14 Feb 2011 05:50:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Feb 2011 05:49:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PorJs-0001bo-GL for submit@debbugs.gnu.org; Mon, 14 Feb 2011 00:49:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoocL-00055G-0j for submit@debbugs.gnu.org; Sun, 13 Feb 2011 21:56:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pooky-00053g-Du for submit@debbugs.gnu.org; Sun, 13 Feb 2011 22:05:45 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:42702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pooky-00053c-AH for submit@debbugs.gnu.org; Sun, 13 Feb 2011 22:05:44 -0500 Original-Received: from [140.186.70.92] (port=56429 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pookx-00050W-7U for Bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 22:05:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pookw-00053P-2P for Bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 22:05:43 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:48349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pookv-00053E-ND for Bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 22:05:41 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Pooku-00036J-DZ for Bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 19:05:40 -0800 X-Nabble-From: slpnabble@blackberry-hill.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Mailman-Approved-At: Mon, 14 Feb 2011 00:49:56 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 14 Feb 2011 00:50:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 14 Feb 2011 01:07:59 -0500 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44111 Archived-At: The behavior is general, but it's a particular problem with next-error: When emacs attempts to find a file with "../" as a path component, it appears to be "smart" about it and simply remove the previous directory path (e.g., "foo/bar/../x" gets converted to "foo/x"). But if bar is a symlink, then it doesn't properly find the file. So in compiler output, which references such files, the next-error function fails to find the file with the given name. mkdir dest mkdir dest/subdir mkdir src ln -s ../dest/subdir src/subdir echo "#error This is an error" > dest/foo.c Now M-x compile, and give it cc -c src/subdir/../foo.c *compilation* buffer has: cc -c src/subdir/../foo.c src/subdir/../foo.c:1:2: error: #error This is an error and do a next-error: Emacs complains it can't find the file. And if you try to find-file that file path (src/subdir/../foo.c) it doesn't work either. Nor does "emacsclient src/subdir/../foo.c. I couldn't find an option to disable this behavior; it seems like there should be one even if the default continues to be as it is today. This is Gnu Emacs 23.2.1 I built myself on MacOS X 10.6.6. Thanks, Steve -- View this message in context: http://old.nabble.com/Processing-of-..-in-a-file-path-after-going-thru-symlink-tp30918394p30918394.html Sent from the Emacs - Bugs mailing list archive at Nabble.com.