]> git.sur5r.net Git - bacula/bacula/commitdiff
Lets use a xattr specific constant and not the stdio BUFSIZ which is kind of platform...
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 26 Dec 2009 19:06:17 +0000 (20:06 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Sat, 26 Dec 2009 19:06:17 +0000 (20:06 +0100)
bacula/src/filed/xattr.c
bacula/src/filed/xattr.h

index 6a839d201bd211aef99277f6f946b624706a2687..24c75c5e2b61ed526b1783e8388d8b1fc7fc7ab8 100644 (file)
@@ -649,7 +649,7 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt)
    unsigned int namespace_index;
    int attrnamespace;
    char *current_attrnamespace = NULL;
-   char current_attrname[BUFSIZ], current_attrtuple[BUFSIZ];
+   char current_attrname[XATTR_BUFSIZ], current_attrtuple[XATTR_BUFSIZ];
    xattr_t *current_xattr;
    alist *xattr_value_list = NULL;
    bxattr_exit_code retval = bxattr_exit_error;
@@ -1382,7 +1382,7 @@ static bxattr_exit_code solaris_save_xattr(JCR *jcr, int fd, const char *xattr_n
    char link_source[PATH_MAX];
    char *acl_text = NULL;
    char attribs[MAXSTRING];
-   char buffer[BUFSIZ];
+   char buffer[XATTR_BUFSIZ];
    bxattr_exit_code retval = bxattr_exit_error;
    berrno be;
 
index 329c32dec0a1995fba9e2ccf27bdb905d3c53bb5..ff2587ed9d53e1cc6c4818195d2ac6689004c141 100644 (file)
@@ -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