GNU bug report logs -
#49699
28.0.50; [PATCH] tramp-scp-strict-file-name-checking fails on macOS 10.14
Previous Next
Reported by: Alex Bochannek <alex <at> bochannek.com>
Date: Thu, 22 Jul 2021 19:44:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Fixed in version 28.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
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 49699 in the body.
You can then email your comments to 49699 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#49699
; Package
emacs
.
(Thu, 22 Jul 2021 19:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Bochannek <alex <at> bochannek.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 22 Jul 2021 19:44:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello!
On macOS 10.14 (and some 10.15) with a pre-8.0 OpenSSH, the check for
the `-T' option when using SCP gives an incorrect result because the
error message (presumably from the BSD getopt(3)) is different than what
is checked for. The below patch fixes that.
Apple upgraded OpenSSH from 7.9 to 8.1 for macOS 10.15.4 and with that
the `-T' option to SCP became available.
[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 8b4c78fe65..f94508303d 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4782,7 +4782,9 @@ tramp-scp-strict-file-name-checking
(with-temp-buffer
(tramp-call-process vec "scp" nil t nil "-T")
(goto-char (point-min))
- (unless (search-forward-regexp "unknown option -- T" nil t)
+ (unless
+ (search-forward-regexp
+ "\\(illegal\\|unknown\\) option -- T" nil t)
(setq tramp-scp-strict-file-name-checking "-T")))))))
tramp-scp-strict-file-name-checking)))
[Message part 3 (text/plain, inline)]
Thanks!
--
Alex.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Fri, 23 Jul 2021 18:34:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Alex Bochannek <alex <at> bochannek.com>
:
bug acknowledged by developer.
(Fri, 23 Jul 2021 18:34:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 49699-done <at> debbugs.gnu.org (full text, mbox):
Version: 28.1
Alex Bochannek <alex <at> bochannek.com> writes:
> Hello!
Hi Alex,
> On macOS 10.14 (and some 10.15) with a pre-8.0 OpenSSH, the check for
> the `-T' option when using SCP gives an incorrect result because the
> error message (presumably from the BSD getopt(3)) is different than what
> is checked for. The below patch fixes that.
Thanks for this, I've pushed it to master. Closing the bug.
> Thanks!
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49699
; Package
emacs
.
(Fri, 23 Jul 2021 21:25:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 49699-done <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> writes:
> Version: 28.1
>
> Alex Bochannek <alex <at> bochannek.com> writes:
>
>> Hello!
>
> Hi Alex,
>
>> On macOS 10.14 (and some 10.15) with a pre-8.0 OpenSSH, the check for
>> the `-T' option when using SCP gives an incorrect result because the
>> error message (presumably from the BSD getopt(3)) is different than what
>> is checked for. The below patch fixes that.
>
> Thanks for this, I've pushed it to master. Closing the bug.
Thanks!
--
Alex.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 21 Aug 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.