Issue SICS-55 - set privilege field in hcommand command

r3530 | jgn | 2012-04-05 15:35:24 +1000 (Thu, 05 Apr 2012) | 1 line
This commit is contained in:
Jing Chen
2012-04-05 15:35:24 +10:00
committed by Douglas Clowes
parent 1dceabc8b7
commit e05c4d28ba

View File

@@ -2996,7 +2996,11 @@ static int SicsCommandNode(SConnection *pCon, SicsInterp *pSics, void *pData,
node->value.v.text = strdup(argv[2]);
node->value.arrayLength = strlen(argv[2]);
SetHdbProperty(node,"sicscommand", argv[2]);
// Set privillege of the node
if(argc > 3){
SetHdbProperty(node,"priv",argv[3]);
}
kalle = MakeHipadabaCallback(CommandSetCallback,NULL, NULL);
if(kalle == NULL){
SCWrite(pCon,"ERROR: out of memory in hcommand",eError);