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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Roel Janssen <roel <at> gnu.org>
Subject: bug#26191: closed (Re: bug#26191: Allow custom FTP logins.)
Date: Tue, 21 Mar 2017 11:20:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#26191: Allow custom FTP logins.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 26191 <at> debbugs.gnu.org.

-- 
26191: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26191
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Roel Janssen <roel <at> gnu.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 26191-done <at> debbugs.gnu.org, Danny Milosavljevic <dannym <at> scratchpost.org>
Subject: Re: bug#26191: Allow custom FTP logins.
Date: Tue, 21 Mar 2017 12:18:40 +0100
Ludovic Courtès writes:

> Hi Roel,
>
> Roel Janssen <roel <at> gnu.org> skribis:
>
>> Ludovic Courtès writes:
>>
>>> Roel Janssen <roel <at> gnu.org> skribis:
>>>
>>>> From 8536ba69ec3a04930e8a78c8f2b824df3e8c0454 Mon Sep 17 00:00:00 2001
>>>> From: Roel Janssen <roel <at> gnu.org>
>>>> Date: Mon, 20 Mar 2017 12:57:25 +0100
>>>> Subject: [PATCH 1/2] ftp-client: Allow custom username and password for FTP
>>>>  servers.
>>>>
>>>> * guix/ftp-client.scm (ftp-open): Add username and password arguments.
>>>
>>> OK!
>>>
>>>> From e7263ce1d1a242f187c9801b14ea47043f59be8e Mon Sep 17 00:00:00 2001
>>>> From: Roel Janssen <roel <at> gnu.org>
>>>> Date: Mon, 20 Mar 2017 12:59:59 +0100
>>>> Subject: [PATCH 2/2] download: Handle username and password properties for FTP
>>>>  uris.
>>>>
>>>> guix/build/download.scm (ftp-fetch): Process username and password from a URI.
>>>
>>> [...]
>>>
>>>> +  (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))
>>>> +         (conn (ftp-open (uri-host uri) #:timeout timeout
>>>> +                                        #:username username
>>>> +                                        #:password password))
>>>
>>> Of course I have to agree with Danny here regarding ‘match’.  ;-)
>>>
>>>   (let ((user (match userinfo
>>>                 (() #f)
>>>                 (("") #f)
>>>                 (((? string? user)) user)))
>>>         (pass (match userinfo
>>>                  …)))
>>>     …)
>>>
>>> OK with a change along these lines.
>>
>> I am unsure about this patch (see attached).  Is this what you had in mind?
>> I would probably have to add a copyright line as well, right?
>
> Yes, LGTM!

Ok, thanks!  I pushed the two patches.

Kind regards,
Roel Janssen

[Message part 3 (message/rfc822, inline)]
From: Roel Janssen <roel <at> gnu.org>
To: guix-patches <at> gnu.org
Subject: Allow custom FTP logins.
Date: Mon, 20 Mar 2017 13:10:08 +0100
[0001-ftp-client-Allow-custom-username-and-password-for-FT.patch (text/x-patch, attachment)]
[0002-download-Handle-username-and-password-properties-for.patch (text/x-patch, attachment)]
[Message part 6 (text/plain, inline)]
Dear guix,

These two patches enable the handling of usernames and passwords in a
FTP uri.

Kind regards,
Roel Janssen

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.