summaryrefslogtreecommitdiff
path: root/src/hostname.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-05-08 16:42:40 +0000
committerJim Meyering <jim@meyering.net>1994-05-08 16:42:40 +0000
commit1f53ad080351ddde8186f4bf72dcaa1673758496 (patch)
treeed6faca09f365bdaf8c34f395126b9c437eb3634 /src/hostname.c
parent31c8ce9ef8cd00a02f9f1e42cca48e08046435aa (diff)
downloadcoreutils-1f53ad080351ddde8186f4bf72dcaa1673758496.tar.xz
.
Diffstat (limited to 'src/hostname.c')
-rw-r--r--src/hostname.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hostname.c b/src/hostname.c
index dcb8074ec..7f8e45aa0 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -82,6 +82,9 @@ main (argc, argv)
error (1, errno, "%s", argv[1]);
exit (0);
}
+#else
+ if (argc == 2)
+ error (1, 0, "cannot set hostname; this system lacks the system call");
#endif
if (argc == 1)