summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-13 12:38:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-13 12:41:02 +0200
commitd62b6d845c75e9c6074d821b425035fbee9c1559 (patch)
tree1d032d4691817b95dd409fb5ab9b5f8291ab02e5 /extensions
parent229e85acd222a4ae9647c7a970269c87cb875b40 (diff)
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
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index ae0714b60c1f..242c39d022b3 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -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);