Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config Don't use _PATH_UNIX on non-NetBSD hosts.



details:   https://anonhg.NetBSD.org/src/rev/99a29660a3e0
branches:  trunk
changeset: 555222:99a29660a3e0
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Nov 12 01:24:15 2003 +0000

description:
Don't use _PATH_UNIX on non-NetBSD hosts.

diffstat:

 usr.sbin/config/main.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 3647ccff121c -r 99a29660a3e0 usr.sbin/config/main.c
--- a/usr.sbin/config/main.c    Wed Nov 12 00:00:28 2003 +0000
+++ b/usr.sbin/config/main.c    Wed Nov 12 01:24:15 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.86 2003/09/14 12:43:04 jmmv Exp $   */
+/*     $NetBSD: main.c,v 1.87 2003/11/12 01:24:15 matt Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -206,7 +206,14 @@
        }
 
        if (xflag) {
+#ifdef __NetBSD__
                conffile = (argc == 1) ? argv[0] : _PATH_UNIX;
+#else
+               if (argc == 0) {
+                       (void)fprintf(stderr, "error: no kernel supplied\n");
+                       exit(1);
+               }
+#endif
                if (!is_elf(conffile)) {
                        (void)fprintf(stderr, "%s: not a binary kernel\n",
                            conffile);



Home | Main Index | Thread Index | Old Index