From 31d7bdfe771853a480203d7d4a661d476d2231a4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 14 Apr 2010 11:24:02 +0000 Subject: Whole lot of changes to support CE. --- agent/command-ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'agent/command-ssh.c') diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 077d93209..f5e4eaa98 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -721,7 +721,8 @@ search_control_file (FILE *fp, const char *hexgrip, assert (strlen (hexgrip) == 40 ); - rewind (fp); + fseek (fp, 0, SEEK_SET); + clearerr (fp); *r_disabled = 0; next_line: do -- cgit v1.2.3