Whamcloud - gitweb
libext2fs: don't leak tdb_null out of the shared library namespace
authorTheodore Ts'o <tytso@mit.edu>
Sat, 5 Nov 2011 18:51:51 +0000 (14:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Nov 2011 18:55:30 +0000 (14:55 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/e2fslibs.symbols
lib/ext2fs/tdb.c
lib/ext2fs/tdb.h

index 1cd4246..040b571 100644 (file)
@@ -515,7 +515,6 @@ libext2fs.so.2 e2fslibs #MINVER#
  qcow2_write_raw_image@Base 1.41.99
  set_undo_io_backing_manager@Base 1.41.0
  set_undo_io_backup_file@Base 1.41.0
- tdb_null@Base 1.40
  test_io_backing_manager@Base 1.37
  test_io_cb_read_blk64@Base 1.41.0
  test_io_cb_read_blk@Base 1.37
index 28d40c5..25ce792 100644 (file)
@@ -108,6 +108,8 @@ typedef int bool;
 
 #include "tdb.h"
 
+static TDB_DATA tdb_null;
+
 #ifndef u32
 #define u32 unsigned
 #endif
@@ -3058,8 +3060,6 @@ int tdb_printfreelist(struct tdb_context *tdb)
 
 /* file: tdb.c */
 
-TDB_DATA tdb_null;
-
 /*
   non-blocking increment of the tdb sequence number if the tdb has been opened using
   the TDB_SEQNUM flag
index bfcd943..732ef0e 100644 (file)
@@ -206,8 +206,6 @@ void tdb_dump_all(struct tdb_context *tdb);
 int tdb_printfreelist(struct tdb_context *tdb);
 int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries);
 
-extern TDB_DATA tdb_null;
-
 #ifdef  __cplusplus
 }
 #endif