summaryrefslogtreecommitdiff
path: root/make/utilities.pm
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-16 21:40:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-16 21:40:14 +0000
commite75369a727da896fa716b755a145f95c61bf2116 (patch)
tree5639bb21c2fdbd4e52986a11d11f0c26b8988d79 /make/utilities.pm
parent60009a99aa2666c384029e8ee1e97a3ce18c76d3 (diff)
Add O_NOFOLLOW to file write call, which prevents following of symlinks making our temp file writing completely secure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6358 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/utilities.pm')
-rw-r--r--make/utilities.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index dc755c63f..34d7b8c86 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -153,7 +153,7 @@ sub translate_functions($$)
do
{
$tmpfile = tmpnam();
- } until sysopen(TF, $tmpfile, O_RDWR|O_CREAT|O_EXCL, 0700);
+ } until sysopen(TF, $tmpfile, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0700);
print "(Created and executed \033[1;32m$tmpfile\033[0m)\n";
print TF $1;
close TF;