[Bug 225344] fetch(1) awaits EOF (or ftp credentials) even when they are provided in env vars
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 20 19:38:06 UTC 2018
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: freebsd-bugs at FreeBSD.org
Reporter: guru at unixarea.de
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
FTP_PASSWORD=guru at sisis.de 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.
More information about the freebsd-bugs
mailing list