diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-03 02:45:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-03 02:45:37 +0000 |
commit | 73bc7f077709294277f31582d2fede84373fd690 (patch) | |
tree | 8219a9ecf2ec4089610472f7fcf37f83eed605e0 | |
parent | 99571c629e1c4b58bdb5071c54c897d3d239e685 (diff) | |
download | coreutils-73bc7f077709294277f31582d2fede84373fd690.tar.xz |
(main): Give a better diagnostic when we fail to set the hostname.
-rw-r--r-- | src/hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |