Fixed the "run_haiku_registrar" tool to be used with the new build system.

It doesn't build though, as SimpleTest doesn't seem to work anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-02 14:25:58 +00:00
parent 4e141bc8a0
commit f23f61c8e3

View File

@ -10,6 +10,7 @@
#include <Query.h>
#include <Path.h>
#include <Volume.h>
#include <fs_info.h>
#include <stdio.h>
#include <string.h>
@ -67,11 +68,11 @@ main()
continue;
const char* registrarPath = path.Path();
const char* distro = strstr(registrarPath, "distro");
if (distro == NULL)
const char* generatedPath = strstr(registrarPath, "generated");
if (generatedPath == NULL)
continue;
if (!strncmp(currentPath.Path(), registrarPath, distro - registrarPath)) {
if (!strncmp(currentPath.Path(), registrarPath, generatedPath - registrarPath)) {
// gotcha!
const char* args[] = { registrarPath, NULL };
thread_id thread = load_image(1, args, (const char**)environ);