From: Eric Bollengier Date: Mon, 31 Aug 2009 13:04:15 +0000 (+0200) Subject: Prohibit copy and assignment in db_list_ctx X-Git-Tag: Release-5.0.0~323^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5dab02ef2981ef6d8e11b70368ef055edec5b1f6;p=bacula%2Fbacula Prohibit copy and assignment in db_list_ctx --- diff --git a/bacula/src/cats/cats.h b/bacula/src/cats/cats.h index 4613b67b5c..6b29b35315 100644 --- a/bacula/src/cats/cats.h +++ b/bacula/src/cats/cats.h @@ -1044,7 +1044,9 @@ struct db_int64_ctx { int count; /* number of values seen */ }; -/* Call back context for getting a list of comma separated strings from the database */ +/* Call back context for getting a list of comma separated strings from the + * database + */ class db_list_ctx { public: POOLMEM *list; /* list */ @@ -1052,6 +1054,10 @@ public: db_list_ctx() { list = get_pool_memory(PM_FNAME); *list = 0; count = 0; } ~db_list_ctx() { free_pool_memory(list); list = NULL; } + +private: + db_list_ctx(const db_list_ctx&); /* prohibit pass by value */ + db_list_ctx &operator=(const db_list_ctx&); /* prohibit class assignment */ }; diff --git a/bacula/technotes b/bacula/technotes index 96ef4d6a46..c196cff7a8 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 31Aug09 +ebl Prohibit copy and assignment in db_list_ctx. mvw Exclude OSX resource forks from saving using the xattr code Exclude OSX acl data from saving using the xattr code when normal acl mode is also enabled.