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:
parent
4e141bc8a0
commit
f23f61c8e3
@ -10,6 +10,7 @@
|
|||||||
#include <Query.h>
|
#include <Query.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <Volume.h>
|
#include <Volume.h>
|
||||||
|
#include <fs_info.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -67,11 +68,11 @@ main()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
const char* registrarPath = path.Path();
|
const char* registrarPath = path.Path();
|
||||||
const char* distro = strstr(registrarPath, "distro");
|
const char* generatedPath = strstr(registrarPath, "generated");
|
||||||
if (distro == NULL)
|
if (generatedPath == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!strncmp(currentPath.Path(), registrarPath, distro - registrarPath)) {
|
if (!strncmp(currentPath.Path(), registrarPath, generatedPath - registrarPath)) {
|
||||||
// gotcha!
|
// gotcha!
|
||||||
const char* args[] = { registrarPath, NULL };
|
const char* args[] = { registrarPath, NULL };
|
||||||
thread_id thread = load_image(1, args, (const char**)environ);
|
thread_id thread = load_image(1, args, (const char**)environ);
|
||||||
|
Loading…
Reference in New Issue
Block a user