aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/crypt_acb.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-07 02:32:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-07 02:32:45 +0000
commit1301dff7c1549dbedfdc67dbfba6a6170d9dbf2d (patch)
tree8f0db810cf1a0d3855dcf63d21e10f101bda3367 /packages/autoconfigbackup/crypt_acb.php
parent6a2dcae70d1851b05cd68293ebf4c5e99a7cc034 (diff)
downloadpfsense-packages-1301dff7c1549dbedfdc67dbfba6a6170d9dbf2d.tar.gz
pfsense-packages-1301dff7c1549dbedfdc67dbfba6a6170d9dbf2d.tar.bz2
pfsense-packages-1301dff7c1549dbedfdc67dbfba6a6170d9dbf2d.zip
* Use fread()
* Touch last backup status file if it does not exist
Diffstat (limited to 'packages/autoconfigbackup/crypt_acb.php')
-rw-r--r--packages/autoconfigbackup/crypt_acb.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/autoconfigbackup/crypt_acb.php b/packages/autoconfigbackup/crypt_acb.php
index 8c56dcaf..ba12af80 100644
--- a/packages/autoconfigbackup/crypt_acb.php
+++ b/packages/autoconfigbackup/crypt_acb.php
@@ -43,7 +43,10 @@
fwrite($pipes[0], $data);
fclose($pipes[0]);
- $rslt = stream_get_contents($pipes[1]);
+ while (!feof($pipes[1])) {
+ $rslt .= fread($pipes[1], 8192);
+ }
+
fclose($pipes[1]);
proc_close($fp);