close_normal_file() store the return value in err from fd_close(), but doesnt preserve the errno, (so check_magic() can stomp it), then the later uses err to strerror, but err is -1 if fd_close() failes so it doens't provade any real only
Created attachment 740 [details] Patch I applied.
Fixed in svn. Thanks ! Jeremy.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.