diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-12 07:49:07 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-12 07:49:07 +0000 |
commit | 7ea0f37de822399983ec98f901ffae6d1047dbaf (patch) | |
tree | 0a741e9146bed85f05e753e05d5ce2b11455729a | |
parent | f80544be2213e8f63c098465543fc598be05dbfd (diff) | |
download | mailutils-7ea0f37de822399983ec98f901ffae6d1047dbaf.tar.gz mailutils-7ea0f37de822399983ec98f901ffae6d1047dbaf.tar.bz2 |
(url_parse0): proto:///file means absolute file name.
-rw-r--r-- | mailbox/url.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mailbox/url.c b/mailbox/url.c index 1929ed3a4..bf4ae0e31 100644 --- a/mailbox/url.c +++ b/mailbox/url.c @@ -226,6 +226,12 @@ url_parse0 (mu_url_t u, char *name) name += 2; + if (name[0] == '/') + { + u->path = name; + return 0; + } + /* Split into LHS and RHS of the '@', and then parse each side. */ u->host = strchr (name, '@'); if (u->host == NULL) |