Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2012 06:40:49 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r236384 - stable/7/share/examples/csh
Message-ID:  <201206010640.q516entH092548@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jun  1 06:40:48 2012
New Revision: 236384
URL: http://svn.freebsd.org/changeset/base/236384

Log:
  MFC r235481:
  	Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
  	socket path if running
  
  PR:		167932
  Approved by:	cperciva (implicit)

Modified:
  stable/7/share/examples/csh/dot.cshrc
Directory Properties:
  stable/7/share/examples/csh/   (props changed)

Modified: stable/7/share/examples/csh/dot.cshrc
==============================================================================
--- stable/7/share/examples/csh/dot.cshrc	Fri Jun  1 06:40:29 2012	(r236383)
+++ stable/7/share/examples/csh/dot.cshrc	Fri Jun  1 06:40:48 2012	(r236384)
@@ -5,7 +5,7 @@
 
 # Sets SSH_AUTH_SOCK to the user's ssh-agent socket path if running
 if (${?SSH_AUTH_SOCK} != "1") then
-	setenv SSH_AUTH_SOCK `sockstat | grep "${USER}" | cut -d ' ' -f 6` 
+	setenv SSH_AUTH_SOCK `sockstat | grep "^${USER} " | awk '/ssh-agent/ { print $6 }'`
 endif
 
 # Change only root's prompt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206010640.q516entH092548>