From: Jim Meyering Date: Mon, 3 May 1999 02:45:37 +0000 (+0000) Subject: (main): Give a better diagnostic when we fail to set the hostname. X-Git-Tag: SH-UTILS-1_16h~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73bc7f077709294277f31582d2fede84373fd690;p=platform%2Fupstream%2Fcoreutils.git (main): Give a better diagnostic when we fail to set the hostname. --- diff --git a/src/hostname.c b/src/hostname.c index ddb1cf7..830d612 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