Skip to content

Fixed cdr file rename bug

Vitaliy Saychuk requested to merge bt/asterisk:fix_cdr_file_rename_bug into devel

The problem was that the rename() function failed
when rotation of the Master.csv was required
due to reaching the maxrow parameter.

This happened, if the temporary CDR file for renaming
was in a directory at a different mount point than Master.csv
rename() function was always failed with a 'Cross-device link' error.

The fix will locate the temporary file in the same directory
as the main Master.csv file

Edited by Vitaliy Saychuk

Merge request reports