Related fdo#60338: do not call umask(3) in a MT program

...and it is unclear what this call was supposed to help for; if a user
deliberately sets its umask too strong, then better live with the consequences
than to silently "fix" it.

Change-Id: I0d84a7d1bd6f007794a65e1f7cc4ea09ebd9d4af
This commit is contained in:
Stephan Bergmann 2014-05-13 12:38:55 +02:00
parent 229e85acd2
commit d62b6d845c

View file

@ -772,7 +772,6 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
return;
}
remove(localPathNew);
umask(0);
if (0 > (fdDst = open(localPathNew, O_WRONLY|O_CREAT,
S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH))){
close( fdSrc);