mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
e0e6e40d17
commit
86f6481e99
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user