]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Prevent door and port files from being restored (mostly
authorKern Sibbald <kern@sibbald.com>
Fri, 4 May 2007 17:01:28 +0000 (17:01 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 4 May 2007 17:01:28 +0000 (17:01 +0000)
     Solaris stuff).

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4696 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/findlib/create_file.c
bacula/technotes-2.1

index 55eb00fbcc255a9448719c76d82df185c01d0553..ab5b5e28b799bc4d79859007f224f0341af56012 100644 (file)
@@ -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) {
index f682b5bd60b4a19bd510fcf6acdd77ad78fd175e..ea05a91526883950afd9624acd64ea0e26aa2404 100644 (file)
@@ -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