X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsysdep.c;h=4b8f4c6a681213f05ecfbe7bebb4c9a2e8d63363;hb=4b9dcaa967180e0b103ea558c1d04945044637ea;hp=44878c757ecd54e6f89b35098bdf115ef0016c10;hpb=ebc64e2caae8740dd047e5317de2172eb3f44fc3;p=citadel.git diff --git a/webcit/sysdep.c b/webcit/sysdep.c index 44878c757..4b8f4c6a6 100644 --- a/webcit/sysdep.c +++ b/webcit/sysdep.c @@ -1,7 +1,7 @@ /* * WebCit "system dependent" code. * - * Copyright (c) 1996-2014 by the citadel.org team + * Copyright (c) 1996-2012 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 3. @@ -181,6 +181,8 @@ void end_critical_section(int which_one) void ShutDownWebcit(void) { + + DeleteHash(&GZMimeBlackList); free_zone_directory (); icaltimezone_release_zone_tab (); icalmemory_free_ring (); @@ -555,6 +557,9 @@ webcit_calc_dirs_n_files(int relh, const char *basedir, int home, char *webcitdi void drop_root(uid_t UID) { struct passwd pw, *pwp = NULL; +#ifdef HAVE_GETPWUID_R + char pwbuf[SIZ]; +#endif /* * Now that we've bound the sockets, change to the Citadel user id and its