use st_ctime always to detect file changes

This commit is contained in:
Jean-Francois Dockes
2013-03-31 08:36:11 +02:00
parent de1656ac15
commit a74d885309
2 changed files with 15 additions and 3 deletions
+5 -3
View File
@@ -48,12 +48,14 @@
// When using extended attributes, we have to use the ctime, because
// this is all that gets set when the attributes are modified. This
// is quite an expensive price to pay...
// this is all that gets set when the attributes are modified.
// As of 1.19 we use ctime in all cases as this allows to detect a
// file renamed into an existing file (e.g. when shifting logs or
// other archives).
#ifdef RCL_USE_XATTR
#define RCL_STTIME st_ctime
#else
#define RCL_STTIME st_mtime
#define RCL_STTIME st_ctime
#endif // RCL_USE_XATTR
using namespace std;