https://bugs.kde.org/show_bug.cgi?id=417682

--- Comment #1 from Harald Sitter <sit...@kde.org> ---
Looks like uri parsing is busted vis a vis ipv6. Up to smbclient 4.11.1 at
least It's a bit of a problem considering ipv4 is considered legacy :|

Trivial example that should stat localhost but instead comes back EINVAL.

    // https://tools.ietf.org/html/rfc3986#section-3.2.2
    if (smbc_stat("smb://[::1]", &st) == 0) {
        printf("success\n");
    } else {
        perror("smb://[::1]");
    }

I've also found https://bugzilla.gnome.org/show_bug.cgi?id=604116 which doesn't
actually mention an upstream report, so I am guessing this wasn't forwarded?
Also it looks like that workaround they pulled may not be nearly as easy for
us. smb://::1 only works if the colons are percent encoded (otherwise that's an
outright wrong uri), QUrl however is fairly strict about what it accepts for
hosts and percent encoded random stuff is not part of it. We'd have to
construct the smb url manually.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to