GNU bug report logs - #26191
Allow custom FTP logins.

Previous Next

Package: guix-patches;

Reported by: Roel Janssen <roel <at> gnu.org>

Date: Mon, 20 Mar 2017 12:11:01 UTC

Severity: normal

Done: Roel Janssen <roel <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 26191 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Roel Janssen <roel <at> gnu.org>
Cc: 26191 <at> debbugs.gnu.org
Subject: Re: bug#26191: Allow custom FTP logins.
Date: Mon, 20 Mar 2017 20:44:48 +0100
Hi Roel,

On Mon, 20 Mar 2017 13:10:08 +0100
Roel Janssen <roel <at> gnu.org> wrote:
> +  (let* ((userinfo (string-split (uri-userinfo uri) #\:))

> +         (username (if (and (> (length userinfo) 0)
> +                            (not (string= (car userinfo) "")))
> +                       (car userinfo) #f))
> +         (password (if (> (length userinfo) 1) (cadr userinfo) #f))

It would make it more readable if you used (match ...).




This bug report was last modified 8 years and 69 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.