diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 12:38:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 12:41:02 +0200 |
commit | d62b6d845c75e9c6074d821b425035fbee9c1559 (patch) | |
tree | 1d032d4691817b95dd409fb5ab9b5f8291ab02e5 /extensions | |
parent | elated fdo#60338: #error on umask(3) calls in currently unused code (diff) | |
download | core-d62b6d845c75e9c6074d821b425035fbee9c1559.tar.gz core-d62b6d845c75e9c6074d821b425035fbee9c1559.zip |
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.cxx | 1 |
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); |