Permalink
Please sign in to comment.
Browse files
Do not read stderr from proxy autodetection scripts
This fixes a regression introduced in commit 8f858d5 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>
- Loading branch information...
Showing
with
46 additions
and 2 deletions.
- +7 −1 apt-pkg/contrib/fileutl.cc
- +3 −0 apt-pkg/contrib/fileutl.h
- +1 −1 apt-pkg/contrib/proxy.cc
- +9 −0 test/libapt/apt-proxy-script
- +26 −0 test/libapt/uri_test.cc
| @@ -0,0 +1,9 @@ | ||
| +#!/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 |
0 comments on commit
a789a9d