aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-09-18 16:40:21 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-09-18 16:40:21 +0200
commit3707680021de040472cd792131a8df42902d08ba (patch)
treeb5f48e3d7141256a0595b901b8f6da9a59d080ca
parentf6ae7a38cfec1d4f8abc6d5c13999682efcfca03 (diff)
downloadssh-agent-filter-3707680021de040472cd792131a8df42902d08ba.tar.gz
also print out SSH_AUTH_SOCK in debug mode
-rw-r--r--ssh-agent-filter.C3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C
index a5ff38e..f5f9f08 100644
--- a/ssh-agent-filter.C
+++ b/ssh-agent-filter.C
@@ -362,6 +362,9 @@ int main (int const argc, char const * const * const argv) {
dup2(devnull, 1);
dup2(devnull, 2);
close(devnull);
+ } else {
+ std::cout << "copy this to another terminal:" << std::endl;
+ std::cout << "SSH_AUTH_SOCK='" << path.native() << "'; export SSH_AUTH_SOCK;" << std::endl;
}
signal(SIGINT, sighandler);