Bug 56862
Summary: | Nautilus doesn't detect invalid dates (future) on files | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Doug Ledford <dledford> |
Component: | nautilus | Assignee: | Havoc Pennington <hp> |
Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-03-11 21:33:37 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Doug Ledford
2001-11-29 01:44:22 UTC
Index: nautilus-thumbnails.c =================================================================== RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-thumbnails.c,v retrieving revision 1.31 diff -u -p -u -r1.31 nautilus-thumbnails.c --- nautilus-thumbnails.c 25 Sep 2001 18:26:16 -0000 1.31 +++ nautilus-thumbnails.c 11 Mar 2002 21:30:29 -0000 @@ -242,6 +242,14 @@ first_file_more_recent (const char* file more_recent = file_info->mtime > other_file_info->mtime; + /* if a file has a modification time in the future, we don't + * want to thumbnail it over and over. This is kind of an + * underengineered solution but since this case isn't supposed + * to happen, it's perhaps appropriate. + */ + if (file_info->mtime > time (NULL)) + more_recent = FALSE; + gnome_vfs_file_info_unref (file_info); gnome_vfs_file_info_unref (other_file_info); nautilus-1.0.6-9 contains a more elaborate fix I did, that sets the thumbnail timestamp to the same as the orig. file and redoes the thumbnail if the stamps are not equal. |