
Well, there are different modes of thought.
What happens as the library is used -- do new files continue to get set with 777 permissions?

I believe it is *supposed* to have the usual restrictive umask.

Perhaps the umask should be set in the script. Then then any files created by subsequent processes should be set with more lenient permissions.