]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.6-backup-restore-socket.patch
Zeroth integration of plugins
[bacula/bacula] / bacula / patches / 2.2.6-backup-restore-socket.patch
1
2  This patch fixes bug #1015 where bacula failed to restore acl to a socket
3  because Bacula no longer restores sockets.
4
5  This fix will tell to bacula-fd to skip all socket file.
6
7  Apply it to version 2.2.6 (or probably any previous 2.2.x version) with
8
9  cd <bacula-source>
10  ./configure <your-options>  not necessary if already configured
11  patch -p0 < 2.2.6-backup-restore-socket.patch
12  make
13  ...
14  make install
15
16 Index: src/filed/backup.c
17 ===================================================================
18 --- src/filed/backup.c  (rĂ©vision 5882)
19 +++ src/filed/backup.c  (copie de travail)
20 @@ -279,6 +279,10 @@
21        break;
22     case FT_SPEC:
23        Dmsg1(130, "FT_SPEC saving: %s\n", ff_pkt->fname);
24 +      if (S_ISSOCK(ff_pkt->statp.st_mode)) {
25 +        Jmsg(jcr, M_SKIPPED, 1, _("     Socket file skipped: %s\n"), ff_pkt->fname);
26 +        return 1;
27 +      }
28        break;
29     case FT_RAW:
30        Dmsg1(130, "FT_RAW saving: %s\n", ff_pkt->fname);