https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225344

            Bug ID: 225344
           Summary: fetch(1) awaits EOF (or ftp credentials) even when
                    they are provided in env vars
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

fetch(1) hangs (for example on ports 'make install') awaiting the input of ftp
credentials via STDIN:

The man page of fetch(3), i.e. the used library for this, explains the
usage of some env vars:

FTP_LOGIN=anonymous export FTP_LOGIN
[email protected] export FTP_PASSWORD

and if you set this and run:

$ fetch ftp://ftp.muc.de

you will see, that the values of the env vars are used, but only *after*
reading and getting EOF on stdin, i.e. if you run:

$ fetch ftp://ftp.muc.de < /dev/null

it works right away.

How this is supposed to work in automated scripts, like 'make install'?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to