aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-27 07:31:03 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-27 07:31:03 +0000
commite73a37436e4f25bb74c2a320faa5f9b98f7a4870 (patch)
tree60184b4631fe40bcac4f52850f2fbc7007eb4b55 /packages/tftp
parent554342859467cd1556d216101fdbbc268f64eb9c (diff)
downloadpfsense-packages-e73a37436e4f25bb74c2a320faa5f9b98f7a4870.tar.gz
pfsense-packages-e73a37436e4f25bb74c2a320faa5f9b98f7a4870.tar.bz2
pfsense-packages-e73a37436e4f25bb74c2a320faa5f9b98f7a4870.zip
TFTP package adjust permissions on file upload to 744
Diffstat (limited to 'packages/tftp')
-rw-r--r--packages/tftp/tftp.xml2
-rw-r--r--packages/tftp/tftp_files.tmp1
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/tftp/tftp.xml b/packages/tftp/tftp.xml
index d92e5301..dadfd37a 100644
--- a/packages/tftp/tftp.xml
+++ b/packages/tftp/tftp.xml
@@ -41,7 +41,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>tftp Settings</name>
- <version>0.8.4</version>
+ <version>0.8.5</version>
<title>TFTP: Settings</title>
<include_file>/usr/local/pkg/tftp.inc</include_file>
<menu>
diff --git a/packages/tftp/tftp_files.tmp b/packages/tftp/tftp_files.tmp
index b44ea22d..1d4b6d21 100644
--- a/packages/tftp/tftp_files.tmp
+++ b/packages/tftp/tftp_files.tmp
@@ -78,6 +78,7 @@ if ($_GET['a'] == "other") {
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
move_uploaded_file($_FILES['ulfile']['tmp_name'], "/tftpboot/" . $_FILES['ulfile']['name']);
$savemsg = "Uploaded file to /tftpboot/" . htmlentities($_FILES['ulfile']['name']);
+ system('chmod -R 744 /tftpboot/*');
unset($_POST['txtCommand']);
}