summaryrefslogtreecommitdiff
path: root/usr.sbin/config/main.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-11 23:47:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-11 23:47:01 +0000
commit597f9413a49a72cb4870f9ca624ad863999c385c (patch)
treef134d60ee7cb06d6a17ccfbdeb5c9ed41fc0c52a /usr.sbin/config/main.c
parent92e77f0c2e03259e2981560c7de86d53bb1a7ea0 (diff)
Make Makefile.boot produce a working config(8) again, at least on 4.4BSD.
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r--usr.sbin/config/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index f0359cb0d2f..947d8d1bb64 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.21 2001/12/05 10:11:23 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.22 2001/12/11 23:47:00 miod Exp $ */
/* $NetBSD: main.c,v 1.22 1997/02/02 21:12:33 thorpej Exp $ */
/*
@@ -169,8 +169,14 @@ main(argc, argv)
if (argc > 1 || (eflag && argv[0] == NULL))
usage();
- if (eflag)
+ if (eflag) {
+#ifdef MAKE_BOOTSTRAP
+ fprintf(stderr, "config: UKC not available in this binary\n");
+ exit(1);
+#else
return (ukc(argv[0], outfile, uflag, fflag));
+#endif
+ }
conffile = (argc == 1) ? argv[0] : "CONFIG";
if (firstfile(conffile)) {