Einige _get_path zu make_path_absolute geaendert.
Die uebergebenen UIDs sind eh (groesstenteils) sinnlos
gewesen und der Name ist sprechender und suggeriert
keine Nutzung einer privaten Funktion.
In beiden Faellen erfolgt keine Expansion von
Platzhaltern im Pfad.
Change-Id: I9b3752b27c65ec3d106be78fcd2976e9e057b3e0
diff --git a/secure/questmaster.c b/secure/questmaster.c
index 32007ce..aef0e45 100644
--- a/secure/questmaster.c
+++ b/secure/questmaster.c
@@ -201,7 +201,7 @@
for (i=sizeof(allowedobj)-1;i>=0;i--)
{
if (!stringp(allowedobj[i]) || allowedobj[i]=="") return -4;
- allowedobj[i]=(string)"/secure/master"->_get_path(allowedobj[i],0);
+ allowedobj[i]=(string)master()->make_path_absolute(allowedobj[i]);
}
if (!stringp(hint) || hint=="") return -5;
if (difficulty<-1 || difficulty>100) return -6;
@@ -664,7 +664,7 @@
if (allowedobj[<2..] == ".c")
allowedobj = allowedobj[0..<3];
allowedobj = explode(allowedobj, "#")[0];
- allowedobj = (string)MASTER->_get_path(allowedobj,0);
+ allowedobj = (string)master()->make_path_absolute(allowedobj);
if (file_size(allowedobj+".c") <=0)
return -3;
@@ -1017,7 +1017,7 @@
if (new_mqob[<2..] == ".c")
new_mqob = new_mqob[0..<3];
new_mqob = explode(new_mqob, "#")[0];
- new_mqob = (string)"/secure/master"->_get_path(new_mqob,0);
+ new_mqob = (string)master()->make_path_absolute(new_mqob);
if (file_size(new_mqob+".c") <= 0)
return -3;
// Wenn das neue Objekt schon eine MQ vergibt, kann es keine weitere