2 This patch fixes bug #1015 where bacula failed to restore acl to a socket
3 because Bacula no longer restores sockets.
5 This fix will tell to bacula-fd to skip all socket file.
7 Apply it to version 2.2.6 (or probably any previous 2.2.x version) with
10 ./configure <your-options> not necessary if already configured
11 patch -p0 < 2.2.6-backup-restore-socket.patch
16 Index: src/filed/backup.c
17 ===================================================================
18 --- src/filed/backup.c (révision 5882)
19 +++ src/filed/backup.c (copie de travail)
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);
30 Dmsg1(130, "FT_RAW saving: %s\n", ff_pkt->fname);