aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-03-19 19:12:07 +0100
committerAnand Jain <anand.jain@oracle.com>2024-03-24 13:32:00 +0800
commitac004a25238cc0da321cf3496fc0215a446e7284 (patch)
treef1957d69287479a30ab1bd7e28e72a86e448aa3b
parentaf82dc0ed2039df3116be239d95b0b17eea6a859 (diff)
downloadxfstests-dev-ac004a25238cc0da321cf3496fc0215a446e7284.tar.gz
common/rc: use proper temporary file path in _repair_test_fs()
The path /tmp.repair would be on the system root that could not be writable, the temporary files are available at $tmp . Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rw-r--r--common/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rc b/common/rc
index 37d26bf21b..ff2949bd05 100644
--- a/common/rc
+++ b/common/rc
@@ -1301,9 +1301,9 @@ _repair_test_fs()
;;
btrfs)
echo 'yes|$BTRFS_UTIL_PROG check --repair --force "$TEST_DEV"' > \
- /tmp.repair 2>&1
+ $tmp.repair 2>&1
yes | $BTRFS_UTIL_PROG check --repair --force "$TEST_DEV" >> \
- /tmp.repair 2>&1
+ $tmp.repair 2>&1
res=$?
;;
*)