Backintime default profile creates an invalid entry in anacrontab

Bug #1224620 reported by Philip Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released
High
Unassigned

Bug Description

(KDE4 gui)

When using the default profile with anacron scheduling, the resultant line in anacrontab contains the profile name (“Main profile”) including the space. This space causes the system to interpret the word “profile” as a command and consequently terminate with an error. The expected backup does not then take place.

My work-around is to manually edit anacrontab to replace the space with an underscore character. All is then well, and backups proceed perfectly.

Of course, whenever I amend settings via the GUI it breaks again, and I have to reapply the fix.

I presume (although I haven't tested) that any user-created profile name that incorporates space characters will also provoke this failure.

Related branches

Revision history for this message
Germar (germar) wrote :

Damn it. I didn't think of spaces and tested only with de locale where 'Main profile' is translated to 'Hauptprofil'. Sorry. I'll fix it.

Changed in backintime:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Germar (germar) wrote :

Until next version you can patch with 'sudo patch /usr/share/backintime/common/config.py config.diff'

Changed in backintime:
status: Triaged → Fix Committed
Revision history for this message
Philip Collins (pa-collins) wrote :

Wow -that was fast work, Germar! Many thanks for the patch.

Germar (germar)
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.