Merge pull request #275 from hpc/fix-libs3

Bugfix S3: suboptimal name mapping was leading to accidential deletes in md-workbench.
master
Julian Kunkel 2020-11-22 12:05:51 +00:00 committed by GitHub
commit b12742e1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -86,9 +86,14 @@ static void def_file_name(s3_options_t * o, char * out_name, char const * path){
}else if(c >= 'A' && c <= 'Z'){
*out_name = *path + ('a' - 'A');
out_name++;
}else if(c == '/'){
*out_name = '_';
out_name++;
}
path++;
}
*out_name = '-';
out_name++;
*out_name = '\0';
}