Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 19 Aug 2004 17:54:31 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: socket() call failing?
Message-ID: <20040819155431.GD10590@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20040818192547.GE8110@nerd-marrow.com> <20040818220049.GU10590@cygbert.vinschen.de> <20040819153125.GF8110@nerd-marrow.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040819153125.GF8110@nerd-marrow.com>
User-Agent: Mutt/1.4.2i

On Aug 19 11:31, Jay Fenlason wrote:
> On Thu, Aug 19, 2004 at 12:00:49AM +0200, Corinna Vinschen wrote:
> 
> > Does the parent process reduce the environment to some bare minimum?
> > Check if the child process still has $SYSTEMROOT set.
> 
> It has a function called safe_env() which strips out everything except
> TZ and (optionally) PATH.  Modifying it to not strip SYSTEMROOT
> allowed Amanda to back up my test directory.  Tonight I'll see if it
> can now back up everything.  Then I'll say that it works.
> 
> Are there any other environment variables that it's dangerous to
> strip?

Not that I'm aware of.  And actually I have no idea why the WinSock DLL
is adamant to have $SYSTEMROOT set, instead of just using the
GetWindowsDirectory() function.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

