From 384f355eff26247b313b1014959654d1c9e668d9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 30 Aug 2009 22:19:57 +0200 Subject: [PATCH] prohibe copy and assignment in Bvfs module --- bacula/src/cats/bvfs.c | 3 +++ bacula/src/cats/bvfs.h | 5 ++++- bacula/technotes | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bacula/src/cats/bvfs.c b/bacula/src/cats/bvfs.c index c27ab50fce..0be85604cd 100644 --- a/bacula/src/cats/bvfs.c +++ b/bacula/src/cats/bvfs.c @@ -130,6 +130,9 @@ public: free(cache_ppathid); free(nodes); } +private: + pathid_cache(const pathid_cache &); /* prohibit pass by value */ + pathid_cache &operator= (const pathid_cache &);/* prohibit class assignment*/ } ; /* Return the parent_dir with the trailing / (update the given string) diff --git a/bacula/src/cats/bvfs.h b/bacula/src/cats/bvfs.h index 9abe7c485e..69a4a916dc 100644 --- a/bacula/src/cats/bvfs.h +++ b/bacula/src/cats/bvfs.h @@ -151,7 +151,10 @@ public: /* for internal use */ int _handle_path(void *, int, char **); -private: +private: + Bvfs(const Bvfs &); /* prohibit pass by value */ + Bvfs & operator = (const Bvfs &); /* prohibit class assignment */ + JCR *jcr; B_DB *db; POOLMEM *jobids; diff --git a/bacula/technotes b/bacula/technotes index 9738213471..2c143b0ad7 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,8 @@ General: +30Aug09 +ebl Prohibe copy and assignment in Bvfs. 28Aug09 kes Fix bug #1357 Verify jobs fail when job has zero files 26Aug09 -- 2.39.5