diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-24 00:08:43 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-24 00:08:43 +0000 |
commit | 193a8fae68d5a51a2dad17c0ee77db1a6d60cb98 (patch) | |
tree | 435e4d2e36ec5a88d5e2af12354bfba8fc5f8bf9 /usr.sbin/kvm_mkdb | |
parent | 89231ffae79ba79bfb400864fb59db987a7d58c7 (diff) | |
download | FreeBSD-src-193a8fae68d5a51a2dad17c0ee77db1a6d60cb98.zip FreeBSD-src-193a8fae68d5a51a2dad17c0ee77db1a6d60cb98.tar.gz |
Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON!
_PATH_UNIX is currently defined as the literal string "don't use this".
I am of two minds about this myself, but wanted to get something into the
tree as quickly as possible.
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r-- | usr.sbin/kvm_mkdb/kvm_mkdb.c | 2 | ||||
-rw-r--r-- | usr.sbin/kvm_mkdb/testdb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c index f80b109..2315352 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.c +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c @@ -83,7 +83,7 @@ main(argc, argv) exit(0); #define basename(cp) ((p = rindex((cp), '/')) != NULL ? p + 1 : (cp)) - nlistpath = argc > 0 ? argv[0] : _PATH_UNIX; + nlistpath = argc > 0 ? argv[0] : (char *)getbootfile(); nlistname = basename(nlistpath); (void)snprintf(dbtemp, sizeof(dbtemp), "%skvm_%s.tmp", diff --git a/usr.sbin/kvm_mkdb/testdb.c b/usr.sbin/kvm_mkdb/testdb.c index f4f3bf0..fe4581e 100644 --- a/usr.sbin/kvm_mkdb/testdb.c +++ b/usr.sbin/kvm_mkdb/testdb.c @@ -66,7 +66,7 @@ testdb() if ((kd = open(_PATH_KMEM, O_RDONLY, 0)) < 0) goto close; - uf = _PATH_UNIX; + uf = (char *)getbootfile(); if ((cp = rindex(uf, '/')) != 0) uf = cp + 1; (void) snprintf(dbname, sizeof(dbname), "%skvm_%s.db", _PATH_VARDB, uf); |