aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp/tftp_files.tmp
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-27 05:39:34 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-27 05:39:34 +0000
commit554342859467cd1556d216101fdbbc268f64eb9c (patch)
treef62670bd11771b4b8186dc6437991802d7babc30 /packages/tftp/tftp_files.tmp
parent65f30611e3273570ac531e75a03c8cb35eebd55e (diff)
downloadpfsense-packages-554342859467cd1556d216101fdbbc268f64eb9c.tar.gz
pfsense-packages-554342859467cd1556d216101fdbbc268f64eb9c.tar.bz2
pfsense-packages-554342859467cd1556d216101fdbbc268f64eb9c.zip
TFTP set permissions to 744 for uploaded TFTP files.
Diffstat (limited to 'packages/tftp/tftp_files.tmp')
-rw-r--r--packages/tftp/tftp_files.tmp3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tftp/tftp_files.tmp b/packages/tftp/tftp_files.tmp
index 1ea1a346..b44ea22d 100644
--- a/packages/tftp/tftp_files.tmp
+++ b/packages/tftp/tftp_files.tmp
@@ -62,7 +62,8 @@ if ($_GET['a'] == "other") {
//extract a specific directory to /tftpboot
if (file_exists('/tmp/'.$filename)) {
//echo "The file $filename exists";
- system('cd /; tar xvpfz /tmp/'.$filename);
+ system('cd /; tar xvpfz /tmp/'.$filename);
+ system('chmod -R 744 /tftpboot/*');
header( 'Location: tftp_files.php?savemsg=Backup+has+been+restored.' ) ;
}
else {