Recompiled it. For some reason fstat() wasn't returning anything useful. Working now.
_________________________
-- JD - SN# 040104008 (120GB Blue, Digital Out)