okbob/pspg

work with the file without restriction of rights.

ihsinme opened this issue · 1 comments

I may be wrong, but I see in your code working with a file without setting permissions. this can lead to a security problem. both by the vector of confidentiality (access to information) and by the vector of accessibility (for example, when using links).
I suggest considering setting limits using umask (0022) and chmod (..., 0644)

f = fopen(path, "w");

okbob commented