Mailinglist Archive: opensuse-factory (422 mails)

< Previous Next >
Re: [opensuse-factory] global proxy configuration
  • From: Rob OpenSuSE <rob.opensuse.linux@xxxxxxxxxxxxxx>
  • Date: Wed, 21 Jan 2009 15:12:27 +0000
  • Message-id: <ce9d8ed60901210712xbfc0b0fw965282812de8ab30@xxxxxxxxxxxxxx>
2009/1/21 z <zoomer.gm@xxxxxxxxx>:

OK, i don't aknowledged with curl\libcurl (which libzypp uses?)
Is there a way to force all curl calls from libzypp to use only
~/.curlrc settings? (which yast can control)

That's what I think will happen if http_proxy etc are always
nullified, when yast uses libzyp & libcurl.
forked children meant future ones forked after the change.

2009/1/21 Rob OpenSuSE <rob.opensuse.linux@xxxxxxxxxxxxxx>:
2009/1/21 Dave Plater <dave.plater@xxxxxxxxxxx>:

Does this mean it is possible to disable proxy use by libzypp without
relogin?

environ(7) explains editing the environment of current process, which
affects forked children. But that does not affect parent processes,
it's a local not global change. So in general no.

For curl usage by YaST, always nullify http_proxy and only use
~root/.curlrc, or manage it's own setting somewhere to overwrite the
_proxy variables, might be a solution.

From curl(1)

-x/--proxy <proxyhost[:port]>
Use specified HTTP proxy. If the port number is not specified, it is
assumed at port 1080.
This option overrides existing environment variables that sets proxy
to use. If there's an environment variable setting a proxy, you can
set proxy to "" to override it.
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups