From 73bc7f077709294277f31582d2fede84373fd690 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 May 1999 02:45:37 +0000 Subject: (main): Give a better diagnostic when we fail to set the hostname. --- src/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostname.c b/src/hostname.c index ddb1cf78f..830d6120a 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -98,7 +98,7 @@ main (int argc, char **argv) /* Set hostname to argv[1]. */ err = sethostname (argv[1], strlen (argv[1])); if (err != 0) - error (1, errno, "%s", argv[1]); + error (1, errno, _("cannot set hostname to `%s'"), argv[1]); exit (0); } #else -- cgit v1.2.3-70-g09d2