s4-provision: Fix tdbdump path lookup in make test.
authorAndreas Schneider <asn@samba.org>
Fri, 16 Dec 2011 18:03:54 +0000 (19:03 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 2 Jan 2012 18:10:04 +0000 (19:10 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/scripting/python/samba/provision/sambadns.py

index 9d8530728b6e1d62523561ca965b6fb157d552cb..5fa022bea15c516ebf318aaa8fdb172027c3ce3b 100644 (file)
@@ -669,7 +669,7 @@ def tdb_copy(logger, file1, file2):
     """Copy tdb file using tdbbackup utility and rename it
     """
     # Find the location of tdbbackup tool
-    dirs = ["bin", samba.param.bin_dir()]
+    dirs = ["bin", samba.param.bin_dir()] + os.getenv('PATH').split(os.pathsep)
     for d in dirs:
         toolpath = os.path.join(d, "tdbbackup")
         if os.path.exists(toolpath):