]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix #1015 about socket restore errors.
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 23 Nov 2007 17:46:13 +0000 (17:46 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 23 Nov 2007 17:46:13 +0000 (17:46 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5969 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/backup.c

index f5fbd25ef2188ed00d25d0c56268b614536d7a6d..6009b1bce5865fda11bf2485c5f722d9fd78507b 100644 (file)
@@ -279,6 +279,10 @@ static int save_file(FF_PKT *ff_pkt, void *vjcr, bool top_level)
       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);