diff options
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository/SCP.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/SCP.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/SCP.pm index dd2864891b7..cc37e48fb44 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository/SCP.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository/SCP.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: SCP.pm,v 1.8 2006/03/13 16:08:12 espie Exp $ +# $OpenBSD: SCP.pm,v 1.9 2006/05/26 17:12:09 steven Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -135,6 +135,9 @@ sub list print $cmdfh "LIST $path\n"; local $_; $_ = <$getfh>; + if (!defined $_) { + die "Could not initiate SSH session\n"; + } chomp; if (m/^ERROR:/) { die $_; |