diff options
| author | Jason Rumney | 2004-03-11 21:10:21 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-03-11 21:10:21 +0000 |
| commit | f6a20b2ccac82ce66e6d6f0cfcf29cfc840ab1e7 (patch) | |
| tree | ede1a92db55dab36524ecfebbe432e442e104af1 | |
| parent | 61042632e3f9cc5e88e061f643c7f070f6226dda (diff) | |
| download | emacs-f6a20b2ccac82ce66e6d6f0cfcf29cfc840ab1e7.tar.gz emacs-f6a20b2ccac82ce66e6d6f0cfcf29cfc840ab1e7.zip | |
(ldap-search-internal): Handle file URLs with drive
letters on DOS/Windows.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/ldap.el | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 86b8eb8bb69..141b28ba9e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-03-11 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * net/ldap.el (ldap-search-internal): Handle file URLs with drive | ||
| 4 | letters on DOS/Windows. | ||
| 5 | |||
| 1 | 2004-03-11 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2004-03-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * server.el (server-name): New var. | 8 | * server.el (server-name): New var. |
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el index d1a580f9c54..93802d5744a 100644 --- a/lisp/net/ldap.el +++ b/lisp/net/ldap.el | |||
| @@ -582,6 +582,11 @@ an alist of attribute/value pairs." | |||
| 582 | (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$") | 582 | (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$") |
| 583 | (setq name (match-string 1) | 583 | (setq name (match-string 1) |
| 584 | value (match-string 3)) | 584 | value (match-string 3)) |
| 585 | ;; Need to handle file:///D:/... as generated by OpenLDAP | ||
| 586 | ;; on DOS/Windows as local files. | ||
| 587 | (if (and (memq system-type '(windows-nt ms-dos)) | ||
| 588 | (eq (string-match "/\\(.:.*\\)$" value) 0)) | ||
| 589 | (setq value (match-string 1 value))) | ||
| 585 | ;; Do not try to open non-existent files | 590 | ;; Do not try to open non-existent files |
| 586 | (if (equal value "") | 591 | (if (equal value "") |
| 587 | (setq value " ") | 592 | (setq value " ") |