From: Kern Sibbald Date: Fri, 4 May 2007 17:01:28 +0000 (+0000) Subject: kes Prevent door and port files from being restored (mostly X-Git-Tag: Release-7.0.0~6435 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58d8c83513130dd684e025723034eb59aa00cf82;p=bacula%2Fbacula kes Prevent door and port files from being restored (mostly Solaris stuff). git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4696 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/findlib/create_file.c b/bacula/src/findlib/create_file.c index 55eb00fbcc..ab5b5e28b7 100644 --- a/bacula/src/findlib/create_file.c +++ b/bacula/src/findlib/create_file.c @@ -238,6 +238,14 @@ int create_file(JCR *jcr, ATTR *attr, BFILE *bfd, int replace) } } else if (S_ISSOCK(attr->statp.st_mode)) { Dmsg1(200, "Skipping restore of socket: %s\n", attr->ofname); +#ifdef S_IFDOOR // Solaris high speed RPC mechanism + } else if (S_ISDOOR(attr->statp.st_mode)) { + Dmsg1(200, "Skipping restore of door file: %s\n", attr->ofname); +#endif +#ifdef S_IFPORT // Solaris event port for handling AIO + } else if (S_ISPORT(attr->statp.st_mode)) { + Dmsg1(200, "Skipping restore of event port file: %s\n", attr->ofname); +#endif } else { Dmsg1(400, "Restore node: %s\n", attr->ofname); if (mknod(attr->ofname, attr->statp.st_mode, attr->statp.st_rdev) != 0 && errno != EEXIST) { diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index f682b5bd60..ea05a91526 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -2,6 +2,8 @@ General: 04May07 +kes Prevent door and port files from being restored (mostly + Solaris stuff). kes Free an unreleased buffer in compat code. kes Change console Job name from *Console* to -Console- to eliminate Win32 filename problems. Put Win32 path separator when creating