diff options
Diffstat (limited to '')
-rw-r--r-- | agent/command-ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |