Don't chamge file times when Last-Modified-Header is missing
This commit is contained in:
parent
0de3396a3d
commit
94af607c70
@ -1,6 +1,11 @@
|
||||
ChangeLog for davfs2
|
||||
--------------------
|
||||
|
||||
2009-08-30 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* cache.de, update_cache_file:
|
||||
Don't chamge file times when Last-Modified-Header
|
||||
is missing.
|
||||
|
||||
2009-08-26 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* cache.c, dav_close:
|
||||
In call to get_file_handle set parameter accmode
|
||||
|
26
po/cs.po
26
po/cs.po
@ -7,7 +7,7 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?"
|
||||
"func=additem&group=davfs2\n"
|
||||
"POT-Creation-Date: 2009-07-17 17:27+0200\n"
|
||||
"POT-Creation-Date: 2009-08-30 16:54+0200\n"
|
||||
"PO-Revision-Date: 2007-05-03 19:50+0200\n"
|
||||
"Last-Translator: Vítězslav Kotrla <vitko@post.cz>\n"
|
||||
"Language-Team: <cs@li.org>\n"
|
||||
@ -61,63 +61,63 @@ msgstr "chyba při zápisu nového indexového souboru %s"
|
||||
msgid "can't create new index file for %s"
|
||||
msgstr "nemohu vytvořit nový indexový soubor pro %s"
|
||||
|
||||
#: src/cache.c:2552 src/cache.c:2586
|
||||
#: src/cache.c:2554 src/cache.c:2588
|
||||
#, c-format
|
||||
msgid "can't create cache file %s"
|
||||
msgstr "nemohu vytvořit soubor vyrovnávací paměti %s"
|
||||
|
||||
#: src/cache.c:2601
|
||||
#: src/cache.c:2603
|
||||
#, c-format
|
||||
msgid "error writing directory %s"
|
||||
msgstr "chyba při zápisu adresáře %s"
|
||||
|
||||
#: src/cache.c:2767 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/cache.c:2771 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/mount_davfs.c:773 src/mount_davfs.c:775 src/mount_davfs.c:781
|
||||
#: src/mount_davfs.c:821 src/mount_davfs.c:823 src/mount_davfs.c:840
|
||||
#: src/mount_davfs.c:842 src/mount_davfs.c:1685 src/mount_davfs.c:1687
|
||||
msgid "can't read user data base"
|
||||
msgstr "nemohu přečíst údaje o uživatelích"
|
||||
|
||||
#: src/cache.c:2778
|
||||
#: src/cache.c:2782
|
||||
#, c-format
|
||||
msgid "can't open cache directory %s"
|
||||
msgstr "nemohu otevřít kešovací adresář %s"
|
||||
|
||||
#: src/cache.c:2793
|
||||
#: src/cache.c:2797
|
||||
#, c-format
|
||||
msgid "can't create cache directory %s"
|
||||
msgstr "nemohu vytvořit kešovací adresář %s"
|
||||
|
||||
#: src/cache.c:2800
|
||||
#: src/cache.c:2804
|
||||
#, c-format
|
||||
msgid "can't access cache directory %s"
|
||||
msgstr "nemohu přistoupit ke kešovacímu adresáři %s"
|
||||
|
||||
#: src/cache.c:2803
|
||||
#: src/cache.c:2807
|
||||
#, c-format
|
||||
msgid "wrong owner of cache directory %s"
|
||||
msgstr "chybný vlastník kešovacího adresáře %s"
|
||||
|
||||
#: src/cache.c:2807
|
||||
#: src/cache.c:2811
|
||||
#, c-format
|
||||
msgid "wrong permissions set for cache directory %s"
|
||||
msgstr "pro kešovací adresář %s nastaveno chybné oprávnění"
|
||||
|
||||
#: src/cache.c:2837
|
||||
#: src/cache.c:2841
|
||||
msgid "found orphaned file in cache:"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2910
|
||||
#: src/cache.c:2914
|
||||
#, c-format
|
||||
msgid "error parsing %s"
|
||||
msgstr "chyba při zpracování %s"
|
||||
|
||||
#: src/cache.c:2911
|
||||
#: src/cache.c:2915
|
||||
#, c-format
|
||||
msgid " at line %i"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2956
|
||||
#: src/cache.c:2960
|
||||
#, c-format
|
||||
msgid "open files exceed max cache size by %llu MiBytes"
|
||||
msgstr ""
|
||||
|
@ -9,7 +9,7 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?"
|
||||
"func=additem&group=davfs2\n"
|
||||
"POT-Creation-Date: 2009-07-17 17:27+0200\n"
|
||||
"POT-Creation-Date: 2009-08-30 16:54+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -56,63 +56,63 @@ msgstr ""
|
||||
msgid "can't create new index file for %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2552 src/cache.c:2586
|
||||
#: src/cache.c:2554 src/cache.c:2588
|
||||
#, c-format
|
||||
msgid "can't create cache file %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2601
|
||||
#: src/cache.c:2603
|
||||
#, c-format
|
||||
msgid "error writing directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2767 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/cache.c:2771 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/mount_davfs.c:773 src/mount_davfs.c:775 src/mount_davfs.c:781
|
||||
#: src/mount_davfs.c:821 src/mount_davfs.c:823 src/mount_davfs.c:840
|
||||
#: src/mount_davfs.c:842 src/mount_davfs.c:1685 src/mount_davfs.c:1687
|
||||
msgid "can't read user data base"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2778
|
||||
#: src/cache.c:2782
|
||||
#, c-format
|
||||
msgid "can't open cache directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2793
|
||||
#: src/cache.c:2797
|
||||
#, c-format
|
||||
msgid "can't create cache directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2800
|
||||
#: src/cache.c:2804
|
||||
#, c-format
|
||||
msgid "can't access cache directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2803
|
||||
#: src/cache.c:2807
|
||||
#, c-format
|
||||
msgid "wrong owner of cache directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2807
|
||||
#: src/cache.c:2811
|
||||
#, c-format
|
||||
msgid "wrong permissions set for cache directory %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2837
|
||||
#: src/cache.c:2841
|
||||
msgid "found orphaned file in cache:"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2910
|
||||
#: src/cache.c:2914
|
||||
#, c-format
|
||||
msgid "error parsing %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2911
|
||||
#: src/cache.c:2915
|
||||
#, c-format
|
||||
msgid " at line %i"
|
||||
msgstr ""
|
||||
|
||||
#: src/cache.c:2956
|
||||
#: src/cache.c:2960
|
||||
#, c-format
|
||||
msgid "open files exceed max cache size by %llu MiBytes"
|
||||
msgstr ""
|
||||
|
26
po/de.po
26
po/de.po
@ -8,7 +8,7 @@ msgstr ""
|
||||
"Project-Id-Version: davfs2 1.3.3\n"
|
||||
"Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?"
|
||||
"func=additem&group=davfs2\n"
|
||||
"POT-Creation-Date: 2009-07-17 17:27+0200\n"
|
||||
"POT-Creation-Date: 2009-08-30 16:54+0200\n"
|
||||
"PO-Revision-Date: 2009-01-02 12:26+0100\n"
|
||||
"Last-Translator: Werner Baumann <werner.baumann@onlinehome.de>\n"
|
||||
"Language-Team: \n"
|
||||
@ -61,63 +61,63 @@ msgstr "Fehler beim Schreiben der neuen Indexdatei %s"
|
||||
msgid "can't create new index file for %s"
|
||||
msgstr "kann keine neue Indexdatei für %s erzeugen"
|
||||
|
||||
#: src/cache.c:2552 src/cache.c:2586
|
||||
#: src/cache.c:2554 src/cache.c:2588
|
||||
#, c-format
|
||||
msgid "can't create cache file %s"
|
||||
msgstr "kann die Cachedatei %s nicht erzeugen"
|
||||
|
||||
#: src/cache.c:2601
|
||||
#: src/cache.c:2603
|
||||
#, c-format
|
||||
msgid "error writing directory %s"
|
||||
msgstr "Fehler beim Schreiben des Verzeichnisses %s"
|
||||
|
||||
#: src/cache.c:2767 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/cache.c:2771 src/mount_davfs.c:594 src/mount_davfs.c:596
|
||||
#: src/mount_davfs.c:773 src/mount_davfs.c:775 src/mount_davfs.c:781
|
||||
#: src/mount_davfs.c:821 src/mount_davfs.c:823 src/mount_davfs.c:840
|
||||
#: src/mount_davfs.c:842 src/mount_davfs.c:1685 src/mount_davfs.c:1687
|
||||
msgid "can't read user data base"
|
||||
msgstr "kann die Benutzerdatenbank nicht lesen"
|
||||
|
||||
#: src/cache.c:2778
|
||||
#: src/cache.c:2782
|
||||
#, c-format
|
||||
msgid "can't open cache directory %s"
|
||||
msgstr "kann das Cacheverzeichnis %s nicht öffnen"
|
||||
|
||||
#: src/cache.c:2793
|
||||
#: src/cache.c:2797
|
||||
#, c-format
|
||||
msgid "can't create cache directory %s"
|
||||
msgstr "kann das Cacheverzeichnis %s nicht erzeugen"
|
||||
|
||||
#: src/cache.c:2800
|
||||
#: src/cache.c:2804
|
||||
#, c-format
|
||||
msgid "can't access cache directory %s"
|
||||
msgstr "Zugriff auf das Cachverzeichnis %s verweigert"
|
||||
|
||||
#: src/cache.c:2803
|
||||
#: src/cache.c:2807
|
||||
#, c-format
|
||||
msgid "wrong owner of cache directory %s"
|
||||
msgstr "das Cacheverzeichnis %s hat den falschen Besitzer"
|
||||
|
||||
#: src/cache.c:2807
|
||||
#: src/cache.c:2811
|
||||
#, c-format
|
||||
msgid "wrong permissions set for cache directory %s"
|
||||
msgstr "das Cachverzeichnis %s hat die falschen Dateirechte"
|
||||
|
||||
#: src/cache.c:2837
|
||||
#: src/cache.c:2841
|
||||
msgid "found orphaned file in cache:"
|
||||
msgstr "fand verwaiste Datei im Cache:"
|
||||
|
||||
#: src/cache.c:2910
|
||||
#: src/cache.c:2914
|
||||
#, c-format
|
||||
msgid "error parsing %s"
|
||||
msgstr "Syntaxfehler in %s"
|
||||
|
||||
#: src/cache.c:2911
|
||||
#: src/cache.c:2915
|
||||
#, c-format
|
||||
msgid " at line %i"
|
||||
msgstr " in Zeile %i"
|
||||
|
||||
#: src/cache.c:2956
|
||||
#: src/cache.c:2960
|
||||
#, c-format
|
||||
msgid "open files exceed max cache size by %llu MiBytes"
|
||||
msgstr ""
|
||||
|
@ -2710,9 +2710,11 @@ update_cache_file(dav_node *node)
|
||||
&smtime, &node->mime_type, NULL);
|
||||
if (!ret) {
|
||||
node->etag = etag;
|
||||
node->atime = smtime;
|
||||
node->mtime = smtime;
|
||||
node->smtime = smtime;
|
||||
if (smtime) {
|
||||
node->atime = smtime;
|
||||
node->mtime = smtime;
|
||||
node->smtime = smtime;
|
||||
}
|
||||
node->utime = time(NULL);
|
||||
set_cache_file_times(node);
|
||||
cache_size += node->size;
|
||||
|
Loading…
Reference in New Issue
Block a user