From 89ddfb6755c46b8ca81cb60b8ca27b1039bb906e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 20 Nov 2007 22:20:40 +0000 Subject: [PATCH] ebl Try to fix #1015 by removing socket support from backup. Because Bacula no longer restores sockets, so why backup them ? git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5965 91ce42f0-d328-0410-95d8-f526ca767f89 --- .../patches/2.2.6-backup-restore-socket.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bacula/patches/2.2.6-backup-restore-socket.patch diff --git a/bacula/patches/2.2.6-backup-restore-socket.patch b/bacula/patches/2.2.6-backup-restore-socket.patch new file mode 100644 index 0000000000..fb9156bf42 --- /dev/null +++ b/bacula/patches/2.2.6-backup-restore-socket.patch @@ -0,0 +1,30 @@ + + This patch fixes bug #1015 where bacula failed to restore acl to a socket + because Bacula no longer restores sockets. + + This fix will tell to bacula-fd to skip all socket file. + + Apply it to version 2.2.6 (or probably any previous 2.2.x version) with + + cd + ./configure not necessary if already configured + patch -p0 < 2.2.6-backup-restore-socket.patch + make + ... + make install + +Index: src/filed/backup.c +=================================================================== +--- src/filed/backup.c (révision 5882) ++++ src/filed/backup.c (copie de travail) +@@ -279,6 +279,10 @@ + break; + case FT_SPEC: + Dmsg1(130, "FT_SPEC saving: %s\n", ff_pkt->fname); ++ if (S_ISSOCK(ff_pkt->statp.st_mode)) { ++ Jmsg(jcr, M_SKIPPED, 1, _(" Socket file skipped: %s\n"), ff_pkt->fname); ++ return 1; ++ } + break; + case FT_RAW: + Dmsg1(130, "FT_RAW saving: %s\n", ff_pkt->fname); -- 2.39.5