From 33be39b42f3b9b0505f83a509ff87d416e106158 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 8 Aug 2014 05:39:38 +0200 Subject: Regression test portability: mktemp Linux mktemp accepts to run without a template, NetBSD mandates it. Since the template option has the same syntax, add it everywhere. While there, also do this in scripts outside of regression testing. BUG: 764655 Change-Id: I3ec140afbc9009257c81a56d77afcc21fef74cc4 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/8432 Tested-by: Gluster Build System Reviewed-by: Harshavardhana Tested-by: Harshavardhana --- extras/hook-scripts/add-brick/post/disabled-quota-root-xattr-heal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/hook-scripts/add-brick') diff --git a/extras/hook-scripts/add-brick/post/disabled-quota-root-xattr-heal.sh b/extras/hook-scripts/add-brick/post/disabled-quota-root-xattr-heal.sh index d18367fc9df..9e72464d161 100755 --- a/extras/hook-scripts/add-brick/post/disabled-quota-root-xattr-heal.sh +++ b/extras/hook-scripts/add-brick/post/disabled-quota-root-xattr-heal.sh @@ -12,7 +12,7 @@ ##--------------------------------------------------------------------------- QUOTA_CONFIG_XATTR="trusted.glusterfs.quota.limit-set"; -MOUNT_DIR=`mktemp --directory --tmpdir`; +MOUNT_DIR=`mktemp -d -t ${0##*/}.XXXXXX`; OPTSPEC="volname:,version:,gd-workdir:,volume-op:" PROGNAME="Quota-xattr-heal-add-brick" VOL_NAME= -- cgit