summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-11-02 00:55:25 +1100
committerStefan Metzmacher <metze@samba.org>2010-11-05 09:27:19 +0000
commitac3f8d859d1ab8b1bb9d41c465dd10499151a8c4 (patch)
tree2f84b87bb8226be75da6c1fbffa09ff0390785fb
parentc378835cb6d660bcd2e0bc6524fc7da5b29963ea (diff)
downloadsamba-ac3f8d859d1ab8b1bb9d41c465dd10499151a8c4.tar.gz
samba-ac3f8d859d1ab8b1bb9d41c465dd10499151a8c4.tar.bz2
samba-ac3f8d859d1ab8b1bb9d41c465dd10499151a8c4.zip
fix in_screen so that it works on os that don't chdir to $PWD
That's the case on freebsd 7.2 Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 5 09:27:19 UTC 2010 on sn-devel-104
-rwxr-xr-xselftest/in_screen1
1 files changed, 1 insertions, 0 deletions
diff --git a/selftest/in_screen b/selftest/in_screen
index 927d83109b..8bfbc0101b 100755
--- a/selftest/in_screen
+++ b/selftest/in_screen
@@ -39,6 +39,7 @@ printenv |
sed "s/\(^[^=]*=\)\(.*\)/export \1'\2'/g" > $basedir/$SERVERNAME.vars
cat <<EOF > $basedir/$SERVERNAME.launch
+cd $PWD
echo \$\$ > $basedir/$SERVERNAME.pid
. $basedir/$SERVERNAME.vars
echo "\$(date) starting $SERVERNAME" >> $basedir/$SERVERNAME.log