summaryrefslogtreecommitdiff
path: root/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch')
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
new file mode 100644
index 000000000000..fee5b783c356
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
@@ -0,0 +1,15 @@
+https://forums.zoneminder.com/viewtopic.php?t=24534
+& personal message by simon@rustyspoon.co_m
+
+diff -ruN ZoneMinder-1.30.2.orig/web/includes/functions.php ZoneMinder-1.30.2/web/includes/functions.php
+--- ZoneMinder-1.30.2.orig/web/includes/functions.php 2017-03-30 20:43:06.000000000 +0200
++++ ZoneMinder-1.30.2/web/includes/functions.php 2017-04-16 21:13:43.841371345 +0200
+@@ -1442,7 +1442,7 @@
+ return( $load[0] );
+ }
+
+-function getDiskPercent($path = ZM_DIR_EVENTS) {
++function getDiskPercent($path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS) {
+ $total = disk_total_space($path);
+ if ( $total === false ) {
+ Error("disk_total_space returned false. Verify the web account user has access to " . $path );