MDEV-17022: check if mtr --mem location is writeable

This commit is contained in:
Teodor Mircea Ionita 2018-08-16 16:39:50 +03:00
parent 1b797e9e63
commit 1b1b941385

View file

@ -1457,7 +1457,7 @@ sub command_line_setup {
foreach my $fs (@tmpfs_locations)
{
if ( -d $fs )
if ( -d $fs && -w $fs )
{
my $template= "var_${opt_build_thread}_XXXX";
$opt_mem= tempdir( $template, DIR => $fs, CLEANUP => 0);