Files
apt/test/libapt/apt-proxy-script
T
Julian Andres Klode 0ecceb5bb9 Do not read stderr from proxy autodetection scripts
This fixes a regression introduced in
  commit 8f858d560e

  don't leak FD in AutoProxyDetect command return parsing

which accidentally made the proxy autodetection code also read
the scripts output on stderr, not only on stdout when it switched
the code from popen() to Popen().

Reported-By: Tim Small <tim@seoss.co.uk>
2016-10-04 19:30:30 +02:00

10 lines
217 B
Bash
Executable File

#!/bin/sh
if [ $1 = "http://www.debian.org:90/temp/test" ]; then
echo "http://example.com"
fi
if [ $1 = "http://www.debian.org:91/temp/test" ]; then
echo "This works" >&2
echo "http://example.com/foo"
fi