From: Yang Zhang <fz15@HPC.MsState.Edu>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp 2.1.13-pre messed up symbolic link?
Date: Thu, 26 Jun 2008 15:43:16 -0500 [thread overview]
Message-ID: <Pine.LNX.4.63.0806261520390.26317@Trident.HPC.MsState.Edu> (raw)
In-Reply-To: <6aa768f2-76c7-4445-ae5b-cf40930e20f1@79g2000hsk.googlegroups.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 703 bytes --]
The two patches are different, you need to apply them both to fix the two
problems. The first patches not handling symbolic link files properly;
the second fixes not setting the file permission properly.
The patches are the changes made in the source code "tramp.el," they are
text files. I guess you can use "diff mode" or other things to apply
them, I just manually changed "tramp.el" according to the patches and
recompiled it.
I re-attached the first one here.
--Yang
On Thu, 26 Jun 2008, Thr4wn wrote:
> how do I apply the patch?
>
> also, is the second patch the 'newer' one, or am I supposed to apply
> the first one as well, because I receive 404 error when I click it.
>
> -Thr4wn
>
[-- Attachment #2: Type: TEXT/PLAIN, Size: 1050 bytes --]
*** /tmp/tramp.el Mon Jun 23 12:20:57 2008
--- /tmp/tramp.el20502jTz Mon Jun 23 12:20:57 2008
***************
*** 6613,6621 ****
(unless (stringp (nth 8 attr))
(setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr))))
;; Convert directory indication bit.
! (if (string-match "^d" (nth 8 attr))
! (setcar attr t)
! (if (and (listp (car attr)) (stringp (caar attr))
(string-match ".+ -> .\\(.+\\)." (caar attr)))
(setcar attr (match-string 1 (caar attr)))
(setcar attr nil)))
--- 6613,6623 ----
(unless (stringp (nth 8 attr))
(setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr))))
;; Convert directory indication bit.
! (when (string-match "^d" (nth 8 attr))
! (setcar attr t))
! ;; Convert symlink from `tramp-handle-file-attributes-with-stat'.
! (when (consp (car attr))
! (if (and (stringp (caar attr))
(string-match ".+ -> .\\(.+\\)." (caar attr)))
(setcar attr (match-string 1 (caar attr)))
(setcar attr nil)))
next prev parent reply other threads:[~2008-06-26 20:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-19 7:56 tramp 2.1.13-pre messed up symbolic link? Yang Zhang
2008-06-19 10:19 ` Peter Dyballa
[not found] ` <mailman.13566.1213870789.18990.help-gnu-emacs@gnu.org>
2008-06-20 4:50 ` Yang Zhang
2008-06-21 8:37 ` Michael Albinus
[not found] ` <8d61170c0806220203h75885df3nf6283e13c6d3732c@mail.gmail.com>
2008-06-23 10:26 ` Michael Albinus
2008-06-24 5:24 ` Yang Zhang
2008-06-24 15:10 ` Michael Albinus
2008-06-25 11:35 ` Michael Albinus
2008-06-26 4:31 ` Yang Zhang
[not found] ` <mailman.13825.1214393802.18990.help-gnu-emacs@gnu.org>
2008-06-26 17:20 ` Thr4wn
2008-06-26 20:43 ` Yang Zhang [this message]
2008-06-27 7:05 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.63.0806261520390.26317@Trident.HPC.MsState.Edu \
--to=fz15@hpc.msstate.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.