You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/backuppc/files/backuppc-3.3.1-perl522.patch

18 lines
611 B

--- a/lib/BackupPC/CGI/Browse.pm 2016-11-22 20:52:03.622509160 +0100
+++ b/lib/BackupPC/CGI/Browse.pm 2016-11-22 20:50:35.871018400 +0100
@@ -62,13 +62,13 @@ fix bug https://bugzilla.redhat.com/attachment.cgi?id=1104083
#
my @Backups = $bpc->BackupInfoRead($host);
#
# default to the newest backup
#
- if ( !defined($In{num}) && defined(@Backups) && @Backups > 0 ) {
+ if ( !defined($In{num}) && @Backups > 0 ) {
$i = @Backups - 1;
$num = $Backups[$i]{num};
}
for ( $i = 0 ; $i < @Backups ; $i++ ) {
last if ( $Backups[$i]{num} == $num );