diff --git a/AUTHORS b/AUTHORS index a3dcfc7..80ae2a7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,28 +1,18 @@ -davfs2 AUTHORS 2009-11-09 +davfs2 AUTHORS 2014-04-21 ------------------------- This package is based on davfs2 0.2.3 by Sun Kim and Robert Spier . This version is a complete rewrite by Werner Baumann. - The kernel interface definitions are copyright by -Miklos Szeredi and Carnegie Mellon University, respectively -(license text below). - -The files in the gl directory are from Gnulib -(http://www.gnu.org/software/gnulib/) and usually under GPL, -Copyright (C) Free Software Foundation. You should look at the -copyright notices of individual files before distributing them. - -The files in the config directory are from the GNU Autotools -and Gnulib. Each file has a short copyright notice. +Miklos Szeredi and Carnegie Mellon University, respectively. Copyright: ========== -Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010 +Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Werner Baumann davfs2 is free software; you can redistribute it and/or modify diff --git a/ChangeLog b/ChangeLog index bde8653..2f8ae40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ ChangeLog for davfs2 -------------------- +2014-05-04 Werner Baumann (werner.baumann@onlinehome.de) + * cache.c, update_cache_file: + Fixing memory leak. + 2014-04-20 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c, cache.c: Add option minimize_mem (sr #108158). diff --git a/README b/README index ea00412..0863d99 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ 2010-04-30 ---------- -# Copyright (C) 2006, 2007, 2008, 2009, 2010 Werner Baumann +# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2014 Werner Baumann # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty. @@ -132,22 +132,30 @@ Nevertheless davfs2 insists on verification of server certificates. There are three ways to do this: - davfs2 will use the CA-certificates of your system to verify the server - certificate. + certificate. The server's certificate must be valid and host-name of the + server must match the subject-alt-name or the common name of the certificate. -- You may store the server certificate in the certs directory and add a - configuration option to davfs2.conf. You will have to verify this certificate - by your own, as davfs2 will trust this certificate without further - verification. This should be useful with self-made server certificates. - If the server certificate is not self-signed, but signed by an unknown - CA, the certificate file must contain the server certificate and the - certificate of all the involved CA's. +- You may store a top-level CA-certificate in the certs directory and set + option trust_ca_cert in the davfs2.conf directory. This CA-certificate will + be used instead of the CA-certificates provided by your system. he server's + certificate must be valid and host-name of the server must match the + subject-alt-name or the common name of the certificate. + This is useful when the service provider uses a private CA or the server + certificate is self-signed. -- The host-name of the server must match the subject-alt-name or the common - name of the certificate. +- You may store the certificate of the server and set option trust_server_cert + in the davfs2.conf file. In this case the certificate of the server must + exactly match this certificate, but it does not matter whether it is valid, + outdated or does not match the server's host-name. -- If a certificate can not be verified, mount.davfs will print information - about the certificate and ask the user. This will only be done, before - mount.davfs changes into daemon mode. +When you use option trust_ca_cert or trust_server_cert it is your responsibility +to get the certificate in a reliable way and care for certificate revocation. +If you can do this it is more secure then relying of well known certificate +authorities (considering recent events). + +If a certificate can not be verified, mount.davfs will print information about +the certificate and ask the user. This will only be done before mount.davfs +changes into daemon mode. 5 CACHE @@ -197,8 +205,8 @@ software, to search for the reason: - You may set option 'debug most" in the davfs2.conf file. This will print a lot of debug messages in one of your log files. -- Wireshark (former Ethereal) will log and analyse the traffic between davfs2 - and the server. (http://www.wireshark.org/) +- Wireshark will log and analyse the traffic between davfs2 and the server. + (http://www.wireshark.org/) - If you have access to the server's log files, they contain valuable information. diff --git a/THANKS b/THANKS index 22a9418..59cc628 100644 --- a/THANKS +++ b/THANKS @@ -1,92 +1,22 @@ -davfs2 THANKS 2010-04-30 +davfs2 THANKS 2014-04-21 ------------------------ -Thanks to all the people that contributed by sending patches -and bug reports, patiently testing and hunting bugs, -and giving good advise. -============================================================ +This file used to contain a list of contributers. But this list never was +complete and I am not able to keep track of contributions. -Dirk Arend -Reto Bachmann-Gmuer -Adrian Bridgett -Anthony Baxter -Dan Armbrust -Luciano Bello -Vladimir Bormotov -butchie55 -Grahame Bowland -Ross Campbell -Laurent Cottereau -Stephen Coursen -DeltaPiSF -Daniel Drucker -Paul eater -Andrei Emeltchenko andrei.emeltchenko.news@gmail.com -Jan Engelhardt -Joe Feise -Peter Fern -Toralf Förster -Justin Gombos -Bob Glickstein -Joao Gouveia -Yeon Gyoung -Jason Haar -Philipp Hahn -Jan Harkes -Martin Higham -Lauri Kaila -Hyunsop Kim -Vítězslav Kotrla -Alexander Jenisch -joe -Simon Kainz -Doug Kelly -Thomas Kemmer -SungHun Kim -Alan Knowles -Moriyoshi Koizumi -Martin F. Krafft -Masar -monstruooo -Muthu Kumar -Scott Lamb -Erik Lat -Andreas Lauser -Holger Librenz -Reddy T. Mahesh -Juergen P. Messerer -Arkadiusz Miskiewicz -Johannes Müller -Andre Naujoks -Maik Nijhuis -Joseph Wayne Norton -Tim Olsen -Jan Ortgies -Joe Orton -Panu Outinen -Tero Pelander -Ruediger Pluem -Gauvain Pocentek -David Popeck -Sean Reifschneider -Sebastian Reitenbach -Daniel Roche -Carl D. Roth -James Russell -Martin Samuelsson -Enrico Scelsa -Patrick Schipper -Hans Schulz -Tim Skirvin -Ville Skyttä -Robert Spier -Steven Stanek -Geoffroy Stévenne -Greg Stein -Tomi -Lars Uffmann -Björn Voigt -Dag Wieers -Jim Whitehead -Will Woods -Marcin Zajączkowski +So I wand to thank all the people who helped in one or another way: + + - By sending reports about problems. + + - By running debug sessions. + + - By sending patches for bug fixes or new teatures. + + - By providing all the libraries that davfs2 uses directly or indirectly. + + - By providing all the tools used to create this program. + + - By providing the free GNU/Linux operating system. + + Werner Baumann + diff --git a/src/cache.c b/src/cache.c index 01560df..452bb8d 100644 --- a/src/cache.c +++ b/src/cache.c @@ -2603,7 +2603,8 @@ update_cache_file(dav_node *node) ret = dav_get_file(node->path, node->cache_path, &node->size, &etag, &smtime, NULL); if (!ret) { - node->etag = etag; + if (node->etag) free(node->etag); + node->etag = etag; if (smtime) { node->atime = smtime; node->mtime = smtime; @@ -2618,6 +2619,7 @@ update_cache_file(dav_node *node) node->parent->utime = 0; remove_node(node); } + if (etag) free(etag); delete_cache_file(node); } }