New versions of Berkeley DB (I tested with 4.5.20) seem to
authorArt Cancro <ajc@citadel.org>
Tue, 5 Jun 2007 21:40:42 +0000 (21:40 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 5 Jun 2007 21:40:42 +0000 (21:40 +0000)
commit5faa31044eeb42801e4ac7db566b686f0d7a5477
treebef5d5f226987ea6429ad611c1c55a821e96807e
parent2ea2a7d64e158dfccb3e90a6b6d45647eed7323e
New versions of Berkeley DB (I tested with 4.5.20) seem to
have a new algorithm that always creates a new log file on startup.  This
broke Citadel's drop_root_perms and caused a database crash.  Refactored
the order of startup functions, separating the code which performs chown
and chmod on files in ctdl_data_dir into its own function and calling that
immediately prior to dropping root permissions.
citadel/database.h
citadel/database_sleepycat.c
citadel/server_main.c