From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.bugs Subject: bug#14995: [PATCH] vc-do-command ignores symbolic links Date: Wed, 31 Jul 2013 18:53:42 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1375268048 31789 80.91.229.3 (31 Jul 2013 10:54:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 10:54:08 +0000 (UTC) To: 14995@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 31 12:54:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4U2j-0002Vg-Nd for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2013 12:54:09 +0200 Original-Received: from localhost ([::1]:38906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2j-0005KE-5G for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2013 06:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2e-0005GL-BR for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4U2c-00009A-Fw for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:54:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2c-000096-C8 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V4U2c-0006Zo-0p for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Xue Fuqiao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jul 2013 10:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.137526803725266 (code B ref -1); Wed, 31 Jul 2013 10:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jul 2013 10:53:57 +0000 Original-Received: from localhost ([127.0.0.1]:60185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V4U2W-0006ZS-TV for submit@debbugs.gnu.org; Wed, 31 Jul 2013 06:53:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57736) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V4U2T-0006Z5-P7 for submit@debbugs.gnu.org; Wed, 31 Jul 2013 06:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4U2M-0008VG-RK for submit@debbugs.gnu.org; Wed, 31 Jul 2013 06:53:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2M-0008V9-O2 for submit@debbugs.gnu.org; Wed, 31 Jul 2013 06:53:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2K-0004wc-QJ for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:53:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4U2J-0008Tc-01 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:53:44 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:39709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4U2I-0008TY-RO for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2013 06:53:42 -0400 Original-Received: by mail-ob0-f177.google.com with SMTP id f8so1028780obp.36 for ; Wed, 31 Jul 2013 03:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lCyHlP3E5DZZBJGY97Fm1rNnjX/ab5EJ4JKrgnnqyck=; b=FUetfb7aYdEIuTZ55qPmN2biornEF4EctV0vdqT6t+VZ/tDmAmsaqztbXxt+/VkkIY PLnwXocVPnBmz+xMwXFWpLGOX5odhdQqmQR+TTFGlRLyOS9htQVXjZyOltnGlGTUqFH/ vuzP2EwWffbGPrqYUWqnHZLyVbwtsaRsWRSwbPZwqY/WfgeKKYO/ANTBOLAySiBN2f7b 7xSv+aNJGP/SKaX6iPLbkHD9eqHFugAuPwf81ADa5yiruBe2gwmUR0diohFzZJ8KxTk3 KhcRjj4dDIZV7AMzNA8ixqlvFBgKGs4vmYHia36EOa5bAVH0q/C4wVNEzx4e+MiIo1RE D1jA== X-Received: by 10.43.159.198 with SMTP id lz6mr5055459icc.97.1375268022082; Wed, 31 Jul 2013 03:53:42 -0700 (PDT) Original-Received: by 10.42.28.3 with HTTP; Wed, 31 Jul 2013 03:53:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76850 Archived-At: tags patch This small patch fixes a bug in vc-do-command: === modified file 'lisp/vc/vc-dispatcher.el' --- lisp/vc/vc-dispatcher.el 2013-06-15 02:50:47 +0000 +++ lisp/vc/vc-dispatcher.el 2013-07-31 10:49:27 +0000 @@ -275,11 +275,8 @@ that is inserted into the command line before the filename. Return the return value of the slave command in the synchronous case, and the process object in the asynchronous case." - ;; FIXME: file-relative-name can return a bogus result because - ;; it doesn't look at the actual file-system to see if symlinks - ;; come into play. (let* ((files - (mapcar (lambda (f) (file-relative-name (expand-file-name f))) + (mapcar (lambda (f) (file-relative-name (file-truename (expand-file-name f)))) (if (listp file-or-list) file-or-list (list file-or-list)))) (full-command ;; What we're doing here is preparing a version of the command -- Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/