From 505458eecb78f90e6c266cbaec9244e88d8c3f1e Mon Sep 17 00:00:00 2001 From: olgeni Date: Mon, 10 Jun 2013 22:15:49 +0200 Subject: Use "pwd -P" to get the current physical path. It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1). Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory. In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself. --- test/upgrade_project/rel/files/dummy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/upgrade_project/rel/files/dummy') diff --git a/test/upgrade_project/rel/files/dummy b/test/upgrade_project/rel/files/dummy index cfbfd4f..83f29ba 100755 --- a/test/upgrade_project/rel/files/dummy +++ b/test/upgrade_project/rel/files/dummy @@ -2,7 +2,7 @@ # -*- tab-width:4;indent-tabs-mode:nil -*- # ex: ts=4 sw=4 et -RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd) +RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd -P) RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*} RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc -- cgit v1.1