summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-02-13 11:55:07 +1100
committerMartin Schwenke <martins@samba.org>2018-03-01 19:39:15 +0100
commit86f6481e996bb65cd71f7a946aec4964c89599d5 (patch)
tree4051aa4868d5ceb18624f704c2f9a241e4c1e412 /ctdb
parente0e6e40d17da94d0e8688c01701d222f72343aac (diff)
downloadsamba-86f6481e996bb65cd71f7a946aec4964c89599d5.tar.gz
ctdb-tests: Avoid creating files in /tmp.
Temporary test data should all go somewhere under TEST_VAR_DIR instead of in the global /tmp. The existing mktemp could be changed so the data goes into the test directory but mktemp is overkill in this case. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/eventscripts/stubs/ip3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/stubs/ip b/ctdb/tests/eventscripts/stubs/ip
index 2468e44ea64..af155beb188 100755
--- a/ctdb/tests/eventscripts/stubs/ip
+++ b/ctdb/tests/eventscripts/stubs/ip
@@ -485,7 +485,8 @@ ip_rule_del ()
touch "$_f"
(
flock 0
- _tmp="$(mktemp)"
+ _tmp="${_f}.new"
+ : >"$_tmp"
_found=false
while read _p _t _s ; do
if ! $_found && \