]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/xattr.h
Add xattr seg fault protection suggested by Marco for bug #1610
[bacula/bacula] / bacula / src / filed / xattr.h
index 90800a038539f0ba2937d4da78cf77654291d163..ff2587ed9d53e1cc6c4818195d2ac6689004c141 100644 (file)
@@ -26,8 +26,8 @@
    Switzerland, email:ftf@fsfeurope.org.
 */
 
-#ifndef _BACULA_XATTR_
-#define _BACULA_XATTR_
+#ifndef __XATTR_H
+#define __XATTR_H
 
 /*
  * Magic used in the magic field of the xattr struct.
@@ -70,4 +70,9 @@ struct xattr_data_t {
  */
 #define MAX_XATTR_STREAM  (1 * 1024 * 1024) /* 1 Mb */
 
+/*
+ * Upperlimit on a xattr internal buffer
+ */
+#define XATTR_BUFSIZ   1024
+
 #endif