From e73a37436e4f25bb74c2a320faa5f9b98f7a4870 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 27 Dec 2008 07:31:03 +0000 Subject: TFTP package adjust permissions on file upload to 744 --- packages/tftp/tftp.xml | 2 +- packages/tftp/tftp_files.tmp | 1 + pkg_config.7.xml | 2 +- 3 files changed, 3 insertions(+), 2 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 @@ Describe your package requirements here Currently there are no FAQ items provided. tftp Settings - 0.8.4 + 0.8.5 TFTP: Settings /usr/local/pkg/tftp.inc 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']); } diff --git a/pkg_config.7.xml b/pkg_config.7.xml index cb6f8be7..7cfc2786 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -80,7 +80,7 @@ http://www.pfsense.com/packages/config/tftp/tftp.xml http://files.pfsense.org/packages/7/All/ - 0.8.4 + 0.8.5 Beta 1.2.1 markjcrane@gmail.com -- cgit v1.2.3