From 1634344195cd5df02b04a08d419059aa44308d68 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Wed, 17 Feb 2016 12:43:51 +1300 Subject: [PATCH 1/3] source3: Replace deprecated realpath with readlink -f The realpath command has been deprecated from GNU coreutils in favour of readlink -f. This patch corrects the testsuite to account for this. Signed-off-by: Adrian Cochrane --- source3/script/tests/test_dfree_quota.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/script/tests/test_dfree_quota.sh b/source3/script/tests/test_dfree_quota.sh index 6240b56..2579255 100755 --- a/source3/script/tests/test_dfree_quota.sh +++ b/source3/script/tests/test_dfree_quota.sh @@ -72,7 +72,7 @@ ABC setup_1_conf() { conf_name="$1" subdir="$2" - absdir=`realpath $WORKDIR/$subdir` + absdir=`readlink -f $WORKDIR/$subdir` conf_lines | sed -rn "s/^$conf_name:(.*)/\1/p" | tr ":" "\n" | \ awk -F '=' -v atdir=$absdir 'NF==1 {section=$1} NF==2 {sub(/\s*$/, "", $1); printf "\tfake_dfq:%s/%s/%s =%s\n", section, $1, atdir, $2}' } -- 1.9.1