File: 1006_disable-ssh-known-hosts.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-- 823 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: Do not attempt to write a SSH KnownHosts file
Forwarded: https://salsa.debian.org/debian-edu/upstream/slbackup-php/-/commit/b792380083d72fd39f3daa6abadf80acd30baaae

--- slbackup-php.orig/src/functions.php
+++ slbackup-php/src/functions.php
@@ -32,7 +32,7 @@ function loadConfig () {
     if (empty ($backupuser)) $backupuser="root" ; 
     if (empty ($backupconf)) $backupconf="/etc/slbackup/slbackup.conf" ; 
     if (empty ($backupcron)) $backupcron="/etc/cron.d/slbackup" ; 
-    if (empty ($ssh_options)) $ssh_options="-o StrictHostKeyChecking=no" ; 
+    if (empty ($ssh_options)) $ssh_options="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ; 
     if (empty ($logfile)) $logfile="/var/log/slbackup/slbackup.log" ; 
 
     switch ($nonhttps) {