diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c index 6eb9c2aaf..add84ed42 100644 --- a/src/vfs/ftpfs/ftpfs.c +++ b/src/vfs/ftpfs/ftpfs.c @@ -935,7 +935,7 @@ ftpfs_open_socket (struct vfs_class *me, struct vfs_s_super *super) me->verrno = errno; close (my_socket); - if (errno == EINTR && tty_got_interrupt ()) + if (me->verrno == EINTR && tty_got_interrupt ()) vfs_print_message ("%s", _("ftpfs: connection interrupted by user")); else if (res->ai_next == NULL) vfs_print_message (_("ftpfs: connection to server failed: %s"),