]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Try to fix #1015 by removing socket support from backup.
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Nov 2007 22:20:40 +0000 (22:20 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Nov 2007 22:20:40 +0000 (22:20 +0000)
     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

bacula/patches/2.2.6-backup-restore-socket.patch [new file with mode: 0644]

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 (file)
index 0000000..fb9156b
--- /dev/null
@@ -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 <bacula-source>
+ ./configure <your-options>  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);