From: Eric Bollengier Date: Sun, 30 Aug 2009 20:19:57 +0000 (+0200) Subject: prohibe copy and assignment in Bvfs module X-Git-Tag: Release-7.0.0~2642^2~3^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60ba5e80da50d4eecf863dd9c83cace4dce92355;p=bacula%2Fbacula prohibe copy and assignment in Bvfs module --- 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