I’m assuming that if compression is used then the program does not need to know the exact level. So why don’t you just try to read it as a compressed file,
if that fails try to read it as an uncompressed file, if this fails then you can throw an error. That way you don’t need to read any configuration file as the compression format will be “auto-detected”.
Chris.
From: Craig Barratt [mailto:cbarratt AT users.sourceforge DOT net]
Sent: Monday, 7 October 2013 11:14 AM
To: General list for user discussion, questions and support
Subject: Re: [BackupPC-users] BackupPC_attribPrint bug
Yes, you are right. However, since it is just passed a path to the attrib file, it might not be easy to determine the backup host and backup number. Perhaps it should be auto-detected or be a command-line switch override?
I've noted this in my to-fix list for 3.x and 4.x.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
If you have any question, please contact MCRI IT Helpdesk for further assistance.
______________________________________________________________________