>>>>> On Tue, 28 Feb 2006 18:37:37 +0000, James Ray <[EMAIL PROTECTED]> said:
> 
> I'm after changing the Files.Lstat field in the bacula database into
> something that is more humanly readable. Does any one have any ideas how
> to do this from with in SQL itself (using mysql here) or from within a
> perl script that I can pass the values to by hand if needed...
The function decode_stat() from src/findlib/attribs.c does the decoding and
can probably be translated into perl (though in the past there has been some
talk about the base64 implementation being non-standard, so you might need to
hand-code that part too).

__Martin


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to