A few months ago I was in Germany and operated as DL/PE4KH with cqrlog on my laptop. When I tried to copy the logs from the laptop to the main computer I use for amateur radio I could not find the backup .tar.gz file of the logged contacts. So I made an export and imported that, which worked fine.
But I decided to find out why the backup was missing and my suspicion was that the slash in the callsign was the reason. So I ran cqrlog with strace and indeed, the / in the callsign is used to generate the filename, and this fails:
open("/home/koos/.config/cqrlog/tmp/PE4KH_backup.tar.gz", O_RDONLY|O_LARGEFILE)
= 23
flock(23, LOCK_SH|LOCK_NB) = 0
open("/home/koos/.config/cqrlog/database/DL/PE4KH_backup.tar.gz", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
close(23) = 0
unlink("/home/koos/.config/cqrlog/tmp/PE4KH_backup.tar.gz") = 0
unlink("/home/koos/.config/cqrlog/tmp/PE4KH_backup.adi") = 0
You probably want to replace / in callsigns with a _ or - before using them as a filename.
Thanks for a great program!
Fixed, thanks a lot!
73 Petr, OK2CQR
--
http://HamQTH.com/ok2cqr
https://ok2cqr.com