diff options
Diffstat (limited to 'ftpfs')
-rw-r--r-- | ftpfs/ChangeLog | 5 | ||||
-rw-r--r-- | ftpfs/dir.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ftpfs/ChangeLog b/ftpfs/ChangeLog index e6df33b0..0b130fd6 100644 --- a/ftpfs/ChangeLog +++ b/ftpfs/ChangeLog @@ -1,3 +1,8 @@ +2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * dir.c (ftpfs_refresh_node): Use st_mtim.tv_sec members instead + of st_mtime. Also compare st_mtim.tv_nsec members. + 2007-11-13 Thomas Schwinge <tschwinge@gnu.org> * netfs.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. diff --git a/ftpfs/dir.c b/ftpfs/dir.c index 8544a325..fb35a451 100644 --- a/ftpfs/dir.c +++ b/ftpfs/dir.c @@ -532,7 +532,9 @@ ftpfs_refresh_node (struct node *node) } } - if ((entry->stat.st_mtime < node->nn_stat.st_mtime + if ((entry->stat.st_mtim.tv_sec < node->nn_stat.st_mtim.tv_sec + || (entry->stat.st_mtim.tv_sec == node->nn_stat.st_mtim.tv_sec + && entry->stat.st_mtim.tv_nsec < node->nn_stat.st_mtim.tv_nsec) || entry->stat.st_size != node->nn_stat.st_size) && nn && nn->contents) /* The file has changed. */ |