Kaydet (Commit) d62b6d84 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 229e85ac
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment