diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-01-19 03:15:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-01-19 03:15:02 +0000 |
commit | ba71fa5eee181b7bd0191d8a96fa431d8449329a (patch) | |
tree | c067d0e05be3fe4c28185259f7e369e660bc0598 /net-fs | |
parent | add rc1, other touchups (diff) | |
download | gentoo-2-ba71fa5eee181b7bd0191d8a96fa431d8449329a.tar.gz gentoo-2-ba71fa5eee181b7bd0191d8a96fa431d8449329a.tar.bz2 gentoo-2-ba71fa5eee181b7bd0191d8a96fa431d8449329a.zip |
fix head -1 #36231
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/shfs/files/shfs.mount | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-fs/shfs/files/shfs.mount b/net-fs/shfs/files/shfs.mount index e9be033da164..b69fde488bae 100644 --- a/net-fs/shfs/files/shfs.mount +++ b/net-fs/shfs/files/shfs.mount @@ -21,8 +21,8 @@ case `basename $0` in RUSER=`echo "$KEY" | cut -d"%" -f1` RHOST=`echo "$KEY" | cut -d"%" -f2-` - SSH_AGENT_PID=`ps -C ssh-agent -opid=,uid= | sed -n "s/^[ \t]\{1,\}\([0-9]\{1,\}\)\{1,\}[ \t]\{1,\}$ID\$/\1/p" | tail -1` - SSH_AUTH_SOCK=`find /tmp -follow -maxdepth 4 -type s -user "$ID" | grep ssh | grep agent | tail -1` + SSH_AGENT_PID=`ps -C ssh-agent -opid=,uid= | sed -n "s/^[ \t]\{1,\}\([0-9]\{1,\}\)\{1,\}[ \t]\{1,\}$ID\$/\1/p" | tail -n 1` + SSH_AUTH_SOCK=`find /tmp -follow -maxdepth 4 -type s -user "$ID" | grep ssh | grep agent | tail -n 1` if [ ! -z "$SSH_AGENT_PID" -a ! -z "$SSH_AUTH_SOCK" ]; then export SSH_AGENT_PID SSH_AUTH_SOCK |