aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-01 18:52:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-01 18:52:32 +0000
commit4b2cbbe662e44baf551dabd06af2a38bacf3d383 (patch)
treee0b43b57750a26e68ff3bf5046ea04f6f6bff5bc
parente67c71d6420e9e47b57a3eb3b9f4859e4efb6f29 (diff)
downloadpaludis-4b2cbbe662e44baf551dabd06af2a38bacf3d383.tar.gz
paludis-4b2cbbe662e44baf551dabd06af2a38bacf3d383.tar.xz
Use 0644 rather than 0600 for the resume command file
-rw-r--r--src/clients/paludis/install.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/paludis/install.cc b/src/clients/paludis/install.cc
index 4d8f59f..019a379 100644
--- a/src/clients/paludis/install.cc
+++ b/src/clients/paludis/install.cc
@@ -32,6 +32,7 @@
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
@@ -103,6 +104,7 @@ namespace
int fd(mkstemp(resume_template));
if (-1 != fd)
{
+ ::fchmod(fd, 0644);
FDOutputStream resume_command_file(fd);
resume_command_file << resume_command << endl;