diff options
author | Peter Hatina <phatina@redhat.com> | 2012-04-03 08:47:25 +0200 |
---|---|---|
committer | Peter Hatina <phatina@redhat.com> | 2012-04-03 08:47:25 +0200 |
commit | e7712ed91bad3721f02eb5696746d2edb429db5f (patch) | |
tree | 89ac3c8dc60290fb815ac0d70ccc07ea73f5737b /SpiceXPI/src | |
parent | c488472179d8c4a171968aee439a9bb2685a93df (diff) |
tmp files owned by current user
Diffstat (limited to 'SpiceXPI/src')
-rw-r--r-- | SpiceXPI/src/plugin/plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp index 8df91e3..3459869 100644 --- a/SpiceXPI/src/plugin/plugin.cpp +++ b/SpiceXPI/src/plugin/plugin.cpp @@ -641,7 +641,9 @@ void nsPluginInstance::Connect() FILE *fp; int fd = -1; char trust_store_template[] = "/tmp/truststore.pem-XXXXXX"; + mode_t prev_umask = umask(0177); fd = mkstemp(trust_store_template); + umask(prev_umask); m_trust_store_file = trust_store_template; if (fd != -1) |