X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=tXABMTRvBabPhYa+ Yjy9aS97XR0OtHUQFhmWQMXk/dZiJePlo3QoCA014DVLS51V6f8olbeASvRnxtVi fERB54FEVWcZ2nShoLpJtnfNj7WaGOD6H8bBQRjBQAbJ4NDEu2B3MSMQ5mZEi33u n0EqaJ4+Tsto5uMeU3aVD/ja1NI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=RBm1HtHt2Q43R4JeUwlGdt oc1gk=; b=v8srEl/6bfztB++V/Oa1fcO+DgRJtwvs6QsCYVJvm/ay0TcSoto2yX aH1XpLyGacKGWlQzpfGYBUhJmLlNWcWPe6OiEIxIEk70QusUYygEWVN+55ehIVVL jCmMc3nPXkTqty2B9GAUcPVxIf3bVBLV3Is77Fy2tbn4SMphimd3Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, yandexru, UD:yandex.ru, yandex.ru X-HELO: forward1m.cmail.yandex.net Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Tue, 29 Nov 2016 19:27:41 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <2925977.20161129192741@yandex.ru> To: Erik Bray , cygwin AT cygwin DOT com Subject: Re: Retrieving per-process environment block? In-Reply-To: References: <20161117140012 DOT GA23664 AT calimero DOT vinschen DOT de> <98eb08bf-5012-fe14-b10c-241b427c4366 AT cs DOT umass DOT edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Erik Bray! > Thanks for the reply. The issue here isn't getting the Windows > process environment--that can be done, albeit trickily [1]. While > it's true there are security implications, in this case that is > handled at the OpenProcess call required to obtain a handle to the > process. It's true you can't just read the environment from a process > you don't have permission to. > The issue here though is reading the Cygwin process's environment > which is separate from its Windows environment, and the above > technique is inapplicable. Update Windows environment block when Cygwin environment is updated. -- With best regards, Andrey Repin Tuesday, November 29, 2016 19:26:20 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple