File: 1005_fix-typo.patch

package info (click to toggle)
slbackup-php 0.4.5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: php: 983; makefile: 92; sh: 48
file content (15 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Guido Berhoerster <guido@berhoerster.name>
Subject: Fix typo causing an exception with PHP 8
Forwarded: https://salsa.debian.org/debian-edu/upstream/slbackup-php/-/commit/cb424f06178265fa31986875a5a5ae7e433ffd6c

--- slbackup-php.orig/src/index.php
+++ slbackup-php/src/index.php
@@ -45,7 +45,7 @@ global $backuphost, $backupuser, $ssh_op
 	proc_close ($proc) ; 
     }
     foreach ($config["clients"] as $key => $value) {
-        if ($key["type"] <> "local") {
+        if ($value["type"] <> "local") {
 	    $out["clients"][$key]["ssh"] = "failed" ; 
 	    $cmd = sprintf ("ssh %s %s@%s 'ssh %s echo ssh ok \; rdiff-backup --version'",
 			     $ssh_options, $backupuser,