On Monday 02 July 2007 01:21, Jon Wilson wrote:
> I don't think I have turned off the output:
> 
> [EMAIL PROTECTED] lib]$ grep OUTPUT_BASE64 md5.*
> md5.c:#define OUTPUT_BASE64 1
> md5.c:#ifdef OUTPUT_BASE64

Yes, sorry I realized that after I sent the email.

> 
> The problem is now that this:
> 
> >> So I have the following, which don't match:
> >>
> >> 1) System MD5sum from file on disk
> >> 2) Bacula md5sum, from file on disk
> >> 3) Base64 encoding of (2)
> >> 4) Base64 hash stored in the catalog
> >>
> >> 1 and 2 don't match, which is confusing me.
> >>
> >> 3 and 4 don't match either. I'm rapidly concluding that (4) is just 
> >> garbage, due to whatever nonsense our in-house scripts introduced into 
> >> the system many months ago.

I'm a surprised that items 1 and 2 do not match. On my system they do.  That 
would indicate that my original explanation of the problem was not entirely 
correct.  There may have been a difference in storing the end of the md5 
coding which would account for this.  If you build the Bacula md5sum using 
the current SVN they should match, as is the case on my system.  

Items 3 and 4 should always match and providing you build the md5sum program 
with the Bacula used to create your catalog (i.e. the old version).  They 
match on my system.   If you build it with the SVN version of Bacula, the 
last argument to the base64 subroutine call should determine whether the 
base64 is done by the old Bacula algorithm or the new one, which is 
compatible with how perl does it.

If your in-house scripts modified the MD5 field of the catalog, obviously 
items 3 and 4 will not match.

Regards,

Kern



> 
> -- 
> Jon Wilson <[EMAIL PROTECTED]>
> Systems Administration Manager
> 
> PO Box H58, Australia Square, Sydney NSW 1215
> Level 2, 9 Castlereagh Street, Sydney Office Tel:+61 9231 5888
> Direct Tel:+61 2 9236 9118  Fax: +61 2 9231 5988
> www.sirca.org.au
> 
> DISCLAIMER: The contents of this email, inclusive of attachments, may be 
> legally privileged and confidential. Any unauthorised use of the 
> contents is expressly prohibited. If you have received this email 
> message in error or are not the intended recipient, you should destroy 
> the message along with any attachment(s). Unintended recipients of this 
> email are prohibited from retaining, disclosing, distributing or using 
> any information herein. This email is also subject to copyright. No part 
> of it should be reproduced, adapted or transmitted without the written 
> consent of the copyright owner.
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to