VirtualTable SaveToFile saves the file with zero permisions (chmod 0)

VirtualTable SaveToFile saves the file with zero permisions (chmod 0)

I am trying to recover my old Linux Lazarus source files and working with Lazarus v2.2.6 and VirtualDac v13.2.1

It is working well so far except I ran into this weird behavior where the VirtualTable.SaveToFile method saves the file with zero permissions (chmod 0). I have not made any changes to the source code and was working before.

The correct behavior is that the file is saved with the user permissions

What am I missing here?