$NetBSD: patch-ac,v 1.7 2006/12/12 13:45:07 dmcmahill Exp $

https://bugs.freedesktop.org/show_bug.cgi?id=9280

--- tools/run-with-tmp-session-bus.sh.orig	2006-10-01 05:18:47.000000000 +0200
+++ tools/run-with-tmp-session-bus.sh
@@ -38,9 +38,11 @@ if ! test -e "$DBUS_TOP_BUILDDIR"/bus/db
     die "$DBUS_TOP_BUILDDIR/bus/dbus-daemon does not exist"
 fi
 
-export PATH="$DBUS_TOP_BUILDDIR"/bus:$PATH
+PATH="$DBUS_TOP_BUILDDIR"/bus:$PATH
+export PATH
 ## the libtool script found by the path search should already do this, but
-export LD_LIBRARY_PATH=$DBUS_TOP_BUILDDIR/dbus/.libs:$LD_LIBRARY_PATH
+LD_LIBRARY_PATH=$DBUS_TOP_BUILDDIR/dbus/.libs:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
 
 unset DBUS_SESSION_BUS_ADDRESS
 unset DBUS_SESSION_BUS_PID
