delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/23/17:06:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BC12D395C405
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1587675902; bh=qgQldoy6g+R2A7qLnTqDXZWZoWL52d/mVGBVHakWiM0=;
h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;
b=ReLPSCIyc0Srl2txnYWbOsa96ea2b0wYpZjX5lk+N9RO+wMygjvev0jaKuw56DCBy
Ts8cDV0q6TwNAhLMQyELQtYB5SbSdsyzAfMRSvAlKq++rP/141uvLCTVPVQ5wxpNqo
zXQNormnQX09bN06V7D1mqARFpPhYZmrDuXIEnwk=
Authentication-Results: mxback8o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Thu, 23 Apr 2020 23:51:19 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <150670600.20200423235119@yandex.ru>
To: Chris Rodgers <ctr28 AT cam DOT ac DOT uk>, cygwin AT cygwin DOT com
Subject: Re: ssh-pageant
In-Reply-To: <d165e827-49ac-e2c6-908c-b58d88c5395e@cam.ac.uk>
References: <5f24168f-61d7-848b-677d-bf0d5aea303a AT cam DOT ac DOT uk>
<373832437 DOT 20200423230202 AT yandex DOT ru>
<d165e827-49ac-e2c6-908c-b58d88c5395e AT cam DOT ac DOT uk>
MIME-Version: 1.0
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Greetings, Chris Rodgers!

> Thanks for the detailed reply. Interesting!

>> It's not that simple. You can't blindly restart agent every time you wish
>> without notifying other programs, `--reuse` is a very bad idea and there's
>> no easy way to set/change an environment variable globally for an entire
>> user session.

> May I ask, why do you say "--reuse" is a very bad idea? I'd be 
> interested to know in general, not just when considering this change.

With --reuse you're using predictable name, and not checking its permissions.
You can never know if that socket was actually created by you or left there by
accident. If you noticed, I trash both socket and agent configuration before
activating the agent anew. That gives me a little more control on what's going
on in the system.


-- 
With best regards,
Andrey Repin
Thursday, April 23, 2020 23:46:25

Sorry for my terrible english...

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

- Raw text -


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