The path /tmp.repair would be on the system root that could not be writable, the temporary files are available at $tmp . Signed-off-by: David Sterba <dsterba@xxxxxxxx> --- common/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/rc b/common/rc index 37d26bf21b7c5f..ff2949bd05353d 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=$? ;; *) -- 2.42.1