delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/19/11:31:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 19 Aug 2004 11:31:25 -0400
From: Jay Fenlason <cygwin AT nerd-marrow DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: socket() call failing?
Message-ID: <20040819153125.GF8110@nerd-marrow.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20040818192547 DOT GE8110 AT nerd-marrow DOT com> <20040818220049 DOT GU10590 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20040818220049.GU10590@cygbert.vinschen.de>

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?

			-- JF

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019