From: Eric Bollengier Date: Fri, 23 Nov 2007 17:46:13 +0000 (+0000) Subject: ebl Fix #1015 about socket restore errors. X-Git-Tag: Release-7.0.0~5368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53864de6e6aa4fa5875bfddd41fb801beea6576f;p=bacula%2Fbacula ebl Fix #1015 about socket restore errors. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5969 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index f5fbd25ef2..6009b1bce5 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -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);