- Fixed a core dump in the sycamore protocol

- Added missing files aynnet.*
- Fixed the addition to root issue in scriptcontex
This commit is contained in:
koennecke
2009-02-17 08:34:46 +00:00
parent e0d306db60
commit ee49c5b56a
5 changed files with 802 additions and 16 deletions

View File

@@ -1005,9 +1005,17 @@ static int SctMakeController(SConnection * con, SicsInterp * sics,
return 0;
}
parent = FindHdbParent(NULL, argv[1], &nodeName, con);
if (parent == NULL)
return 0; /* error message already written */
/*
* Install into the Hipadaba when full path given
*/
if(strstr(argv[1],"/") != NULL){
parent = FindHdbParent(NULL, argv[1], &nodeName, con);
if (parent == NULL)
return 0; /* error message already written */
} else {
nodeName = argv[1];
parent = NULL;
}
controller = calloc(1, sizeof(*controller));
assert(controller);
@@ -1022,7 +1030,9 @@ static int SctMakeController(SConnection * con, SicsInterp * sics,
ccmd->pPrivate = controller;
ccmd->KillPrivate = SctKillController;
AddHipadabaChild(parent, controller->node, con);
if(parent != NULL){
AddHipadabaChild(parent, controller->node, con);
}
controller->devser = DevMake(con, argc - 2, argv + 2);
if (!controller->devser)