--- /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm.orig 2016-09-06 04:04:33.466484120 -0400 +++ /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm 2016-09-06 04:05:34.271384202 -0400 @@ -47,8 +47,11 @@ if ($In{image} ne "") { $In{image} =~ /([0-9]+)/; my $weeks = $1; + my $real = $<; ### SUID + $< = $>; ### SUID print "Content-type: image/png\n\n"; print `/usr/bin/rrdtool graph - --imgformat=PNG --start=end-${weeks}w --end=-300 --title="BackupPC Pool Size (${weeks} weeks)" --base=1000 --height=100 --width=600 --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode --font TITLE:10:Times --font AXIS:8:Times --font LEGEND:8:Times --font UNIT:8:Times -c BACK#FFFFFF DEF:ao="$LogDir/pool.rrd":ckb:AVERAGE CDEF:a=ao,1024,* AREA:a#95B8DB:"CPool in bytes" GPRINT:a:LAST:"Current\\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\\:%8.2lf %s" GPRINT:a:MAX:"Maximum\\:%8.2lf %s\\n"`; + $< = $real; ### SUID return; }