diff options
-rw-r--r-- | lib/rtapelib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rtapelib.c b/lib/rtapelib.c index 51faf3c..02ad1e7 100644 --- a/lib/rtapelib.c +++ b/lib/rtapelib.c @@ -425,7 +425,10 @@ rmt_open__ (const char *file_name, int open_mode, int bias, } /* FIXME: Should somewhat validate the decoding, here. */ - + if (gethostbyname (remote_host) == NULL) + error (EXIT_ON_EXEC_ERROR, 0, _("Cannot connect to %s: resolve failed"), + remote_host); + if (remote_user && *remote_user == '\0') remote_user = 0; |