diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-12-04 14:53:10 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-12-04 15:10:03 +0100 |
commit | ecd117fcd7a29780b610c1c585e71546a33d5c16 (patch) | |
tree | eef512f1d5895557a87fc3e491858cbd11012976 /main/backuppc/fix-socket-path.patch | |
parent | 5eebb2d08f9f13511c6d0a1b6f3efdf18077b58a (diff) | |
download | aports-ecd117fcd7a29780b610c1c585e71546a33d5c16.tar.bz2 aports-ecd117fcd7a29780b610c1c585e71546a33d5c16.tar.xz |
main/backuppc: fix socket path
Diffstat (limited to 'main/backuppc/fix-socket-path.patch')
-rw-r--r-- | main/backuppc/fix-socket-path.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/backuppc/fix-socket-path.patch b/main/backuppc/fix-socket-path.patch new file mode 100644 index 0000000000..ebc582fa26 --- /dev/null +++ b/main/backuppc/fix-socket-path.patch @@ -0,0 +1,22 @@ +--- a/bin/BackupPC ++++ b/bin/BackupPC +@@ -1885,7 +1885,7 @@ + print(LOG $bpc->timeStamp, "unix socket() failed: $!\n"); + exit(1); + } +- my $sockFile = "$LogDir/BackupPC.sock"; ++ my $sockFile = "/run/backuppc/BackupPC.sock"; + unlink($sockFile); + if ( !bind(SERVER_UNIX, sockaddr_un($sockFile)) ) { + print(LOG $bpc->timeStamp, "unix bind() failed: $!\n"); +--- a/lib/BackupPC/Lib.pm ++++ b/lib/BackupPC/Lib.pm +@@ -686,7 +686,7 @@ + # + # First try the unix-domain socket + # +- my $sockFile = "$bpc->{LogDir}/BackupPC.sock"; ++ my $sockFile = "/run/backuppc/BackupPC.sock"; + socket(*FH, PF_UNIX, SOCK_STREAM, 0) || return "unix socket: $!"; + if ( !connect(*FH, sockaddr_un($sockFile)) ) { + my $err = "unix connect: $!"; |