MGtool: /std/util/path nutzen
Erbt und nutzt jetzt normalize_path() aus
/std/util/path statt den master zu rufen.
Change-Id: I526a704c1e8c83c9d0995b159f86e634813f857a
diff --git a/obj/tools/MGtool.c b/obj/tools/MGtool.c
index e7b8c98..1d991e0 100644
--- a/obj/tools/MGtool.c
+++ b/obj/tools/MGtool.c
@@ -10,9 +10,11 @@
#pragma strict_types
+protected functions virtual inherit "/std/util/path";
inherit "/std/thing/properties";
#include <properties.h>
+
#if !defined(QUERYCACHED)
#define QUERYCACHED 4096
#endif
diff --git a/obj/tools/MGtool/toollib.c b/obj/tools/MGtool/toollib.c
index c7d8249..4c83ace 100644
--- a/obj/tools/MGtool/toollib.c
+++ b/obj/tools/MGtool/toollib.c
@@ -56,7 +56,7 @@
string long_path(string file)
{
- return (string)MASTER->make_path_absolute(file);
+ return normalize_path(file, getuid(this_interactive() || PL), 1);
}
string *long_get_dir(string pat, int all)