]> arthur.barton.de Git - bup.git/commitdiff
cmd/lib/bup.c: Don't use sysctl kern.proc.pathname on NetBSD
authorGreg Troxel <gdt@lexort.com>
Wed, 6 Jul 2022 13:20:47 +0000 (09:20 -0400)
committerRob Browning <rlb@defaultvalue.org>
Sat, 9 Jul 2022 18:42:00 +0000 (13:42 -0500)
This doesn't work, and I have no idea why the code asks for it.
Removing NetBSD from this ifdef branch makes executing bup within the
build tree work again.

Signed-off-by: Greg Troxel <gdt@lexort.com>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/bup.c

index 482960be052b05731def8764467bbcd13e09357e..9cd1f388a009c635c8d6b8a75c91ff87b365899d 100644 (file)
@@ -120,7 +120,7 @@ static char *exe_parent_dir(const char * const argv_0) {
     return abs_parent;
 }
 
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__)
 
 static char *exe_path ()
 {
@@ -145,7 +145,7 @@ static char *exe_parent_dir(const char * const argv_0)
     return parent;
 }
 
-#else // not defined(__FreeBSD__) || defined(__NetBSD__)
+#else // not defined(__FreeBSD__)
 
 /// Use /proc if possible, and if all else fails, search in the PATH