1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
From: Guido Berhoerster <guido@berhoerster.name>
Subject: Do not log to /tmp/error.log but stderr, the webserver error log
Forwarded: https://salsa.debian.org/debian-edu/upstream/slbackup-php/-/commit/e13d44dbbcaf9d112e73af404530f920c321eafb
--- slbackup-php.orig/src/index.php
+++ slbackup-php/src/index.php
@@ -25,7 +25,6 @@ global $backuphost, $backupuser, $ssh_op
$out = array () ;
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -78,7 +77,6 @@ global $backuphost, $backupuser, $ssh_op
$snapshots = array () ;
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -105,7 +103,6 @@ global $backuphost, $backupuser, $ssh_op
$snapshots = array () ;
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -132,7 +129,6 @@ global $backuphost, $backupuser, $ssh_op
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -151,7 +147,6 @@ global $backuphost, $backupuser, $ssh_op
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -209,7 +204,6 @@ global $backuphost, $backupuser, $ssh_op
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -279,7 +273,6 @@ global $backuphost, $backupuser, $ssh_op
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -377,7 +370,6 @@ global $backuphost, $backupuser, $backup
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -402,7 +394,6 @@ global $backuphost, $backupuser, $backup
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -458,7 +449,6 @@ global $backuphost, $backupuser, $backup
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -483,7 +473,6 @@ global $backuphost, $backupuser, $backup
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
@@ -549,7 +538,6 @@ global $backuphost, $backupuser, $logfil
$desc[0] = array ("pipe", "r") ;
$desc[1] = array ("pipe", "w") ;
- $desc[2] = array ("file", "/tmp/error.log", "a") ;
$env = array ('SSH_ASKPASS' => $ssh_askpass,
'DISPLAY' => ':nowhere') ;
|