From: Marco v. W. <ma...@us...> - 2009-12-26 19:07:35
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Bacula". The branch, master has been updated via f9ef6f04929573d836393ac1652a5de18634a418 (commit) from a60f84b02b7c3811bb13d6baf75407283570798a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f9ef6f04929573d836393ac1652a5de18634a418 Author: Marco van Wieringen <mv...@pl...> Date: Sat Dec 26 20:06:17 2009 +0100 Lets use a xattr specific constant and not the stdio BUFSIZ which is kind of platform dependend. ----------------------------------------------------------------------- Summary of changes: diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index 6a839d2..24c75c5 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -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; diff --git a/bacula/src/filed/xattr.h b/bacula/src/filed/xattr.h index 329c32d..ff2587e 100644 --- a/bacula/src/filed/xattr.h +++ b/bacula/src/filed/xattr.h @@ -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 hooks/post-receive -- Bacula |