I am looking for a way to update the reported size of a file in a plain
directory index generated by Apache. I have installed a perl fixup
handler that does check if a Macintosh resource fork is available
additionally to the plain data fork and it replaces the default content
handler with a custom one that combines both the data and resource fork
on the fly in the MacBinary archive format. This all runs fine and well.

The problem I have now that I need to modify the displayed size in the
directory index. For example if the file in question is a Mac resource
file with no data area the directory index displays 0k as the plain data
file really has a zero length. I would believe that I need to delve into
the C innards of the request record and add the size of the resource
fork to the st_size field of the stat record to fix this, or does
anybody have any better idea how to do this in plain perl?

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:          +49 5131 709320
FAX:            +49 5131 709325
Internet:       [EMAIL PROTECTED]

Reply via email to