https://bugs.freedesktop.org/show_bug.cgi?id=60338
--- Comment #8 from [email protected] --- (In reply to comment #7) > The described behauviour of the attached document might be caused by codes > like this (from tempfile.c): > > mode_t old_mode = umask(077); > > osl_error = osl_openFile( > tmp_file_url, > file_handle, > osl_File_OpenFlag_Read | > osl_File_OpenFlag_Write | > osl_File_OpenFlag_Create); > > umask(old_mode) > > Thread1 sets the umask to 077 and stores the actual umask in old_mode, then > control switches to another thread which as well stores the actual umask > (now 077), then thread1 restores the umask to old_mode, then thread2 > restores it to 077, and the original umask is gone forever. > > I normally lost umask around file 1200, but after synchronizing the calls to > umask I succedded to export ~3500 pdfs with rw-r--r-- (I set umask to 022), > so there might be other similar code fragments. That could definitely cause the problem we're seeing, thanks for your work on this! -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
