Comment 7 for bug 246659

Revision history for this message
In , Filipe (filipe-redhat-bugs) wrote :

Created attachment 325239
Patch for lib/BackupPC/Lib.pm

Description of problem:
Changing TopDir in config file does not affect pool and cpool, BackupPC still thinks those are under the default directory /var/lib/BackupPC

Version-Release number of selected component (if applicable):
3.1.0-3.fc10

How reproducible:
Every time.

Steps to Reproduce:
1. Set $Conf{TopDir} = '/whatever'; in config.pl
2. Create /whatever with the default BackupPC directories (pool, cpool, pc, trash) and right permissions.
3. Run a backup.

Actual results:
cpool will be empty, and this will be the output in /var/log/BackupPC/LOG:
2008-11-29 10:23:40 BackupPC_link got error -4 when calling MakeFileLink(/whatever/pc/xxxname/0/f%2fetc/fDIR_COLORS, a1fbdaecae5425dc9d24653e5c87a22e, 1)

Expected results:
The files in cpool would be correctly created.

Additional info:
This mailing list post has a patch for the problem:
http://sourceforge.net/mailarchive/message.php?msg_name=20080808032558.GG13869%40gratch.parplies.de

I'm attaching the same patch here.

I applied this patch to an already installed BackupPC from the Fedora RPM, and after that it worked as supposed to.