From 5dab02ef2981ef6d8e11b70368ef055edec5b1f6 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 31 Aug 2009 15:04:15 +0200 Subject: [PATCH] Prohibit copy and assignment in db_list_ctx --- bacula/src/cats/cats.h | 8 +++++++- bacula/technotes | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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. -- 2.39.5