diff options
| author | Michael Albinus | 2023-10-27 15:09:41 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-10-27 15:09:41 +0200 |
| commit | 41939127457f0564217caef2d8740f8e0e816b9c (patch) | |
| tree | 9a7ec1b5dbb65557cdf31a86334b0a80d386bb28 | |
| parent | c22eeba82770e71ade074883ff8682e7dcae0509 (diff) | |
| download | emacs-41939127457f0564217caef2d8740f8e0e816b9c.tar.gz emacs-41939127457f0564217caef2d8740f8e0e816b9c.zip | |
Fix Tramp (don't merge)
* lisp/net/tramp.el (tramp-read-id-output): Identifiers can contain "-".
| -rw-r--r-- | lisp/net/tramp.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index d1b38cfeb93..29f5ffd68f0 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -6399,20 +6399,20 @@ Set connection properties \"{uid,gid.groups}-{integer,string}\"." | |||
| 6399 | (goto-char (point-min)) | 6399 | (goto-char (point-min)) |
| 6400 | ;; Read uid. | 6400 | ;; Read uid. |
| 6401 | (when (re-search-forward | 6401 | (when (re-search-forward |
| 6402 | (rx "uid=" (group (+ digit)) "(" (group (+ (any "_" word))) ")") | 6402 | (rx "uid=" (group (+ digit)) "(" (group (+ (any "_-" alnum))) ")") |
| 6403 | nil 'noerror) | 6403 | nil 'noerror) |
| 6404 | (setq uid-integer (string-to-number (match-string 1)) | 6404 | (setq uid-integer (string-to-number (match-string 1)) |
| 6405 | uid-string (match-string 2))) | 6405 | uid-string (match-string 2))) |
| 6406 | ;; Read gid. | 6406 | ;; Read gid. |
| 6407 | (when (re-search-forward | 6407 | (when (re-search-forward |
| 6408 | (rx "gid=" (group (+ digit)) "(" (group (+ (any "_" word))) ")") | 6408 | (rx "gid=" (group (+ digit)) "(" (group (+ (any "_-" alnum))) ")") |
| 6409 | nil 'noerror) | 6409 | nil 'noerror) |
| 6410 | (setq gid-integer (string-to-number (match-string 1)) | 6410 | (setq gid-integer (string-to-number (match-string 1)) |
| 6411 | gid-string (match-string 2))) | 6411 | gid-string (match-string 2))) |
| 6412 | ;; Read groups. | 6412 | ;; Read groups. |
| 6413 | (when (re-search-forward (rx "groups=") nil 'noerror) | 6413 | (when (re-search-forward (rx "groups=") nil 'noerror) |
| 6414 | (while (looking-at | 6414 | (while (looking-at |
| 6415 | (rx (group (+ digit)) "(" (group (+ (any "_" word))) ")")) | 6415 | (rx (group (+ digit)) "(" (group (+ (any "_-" alnum))) ")")) |
| 6416 | (setq groups-integer (cons (string-to-number (match-string 1)) | 6416 | (setq groups-integer (cons (string-to-number (match-string 1)) |
| 6417 | groups-integer) | 6417 | groups-integer) |
| 6418 | groups-string (cons (match-string 2) groups-string)) | 6418 | groups-string (cons (match-string 2) groups-string)) |