GNU bug report logs -
#14995
[PATCH] vc-do-command ignores symbolic links
Previous Next
Reported by: Xue Fuqiao <xfq.free <at> gmail.com>
Date: Wed, 31 Jul 2013 10:54:01 UTC
Severity: minor
Tags: moreinfo
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14995 in the body.
You can then email your comments to 14995 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14995
; Package
emacs
.
(Wed, 31 Jul 2013 10:54:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Xue Fuqiao <xfq.free <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 31 Jul 2013 10:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14995
; Package
emacs
.
(Wed, 31 Jul 2013 14:14:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14995 <at> debbugs.gnu.org (full text, mbox):
> 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
I'm not completely sure this fix is needed (and I'd rather avoid
calling file-truename, if possible). Do you have a concrete case where
this causes problems?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14995
; Package
emacs
.
(Wed, 31 Jul 2013 22:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14995 <at> debbugs.gnu.org (full text, mbox):
On Wed, Jul 31, 2013 at 10:13 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> 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
>
> I'm not completely sure this fix is needed (and I'd rather avoid
> calling file-truename, if possible). Do you have a concrete case where
> this causes problems?
No. I made this patch in passing when I was reading vc-dispatcher.
--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14995
; Package
emacs
.
(Thu, 06 Feb 2014 01:02:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 14995 <at> debbugs.gnu.org (full text, mbox):
Xue Fuqiao <xfq.free <at> gmail.com> writes:
>> I'm not completely sure this fix is needed (and I'd rather avoid
>> calling file-truename, if possible). Do you have a concrete case where
>> this causes problems?
>
> No. I made this patch in passing when I was reading vc-dispatcher.
Then I guess this can be closed. If there is a bug here, please reopen
this report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug closed, send any further explanations to
14995 <at> debbugs.gnu.org and Xue Fuqiao <xfq.free <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 06 Feb 2014 01:02:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Mar 2014 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.