aboutsummaryrefslogtreecommitdiff
path: root/flx/fct1.c
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2006-07-16 14:53:48 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 11:56:35 +0200
commitc6c7af73954503fb951863f30ef563aecddfbdc3 (patch)
tree186fa424e932612c5ca885559772c535af3ddb83 /flx/fct1.c
parent[RELEASE] flxutils-0.1.28 (diff)
downloadflxutils-c6c7af73954503fb951863f30ef563aecddfbdc3.tar.xz
[RELEASE] flxutils-0.1.29v0.1.29
Diffstat (limited to 'flx/fct1.c')
-rw-r--r--flx/fct1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/flx/fct1.c b/flx/fct1.c
index 622add7..c074a7a 100644
--- a/flx/fct1.c
+++ b/flx/fct1.c
@@ -76,8 +76,9 @@ int files_are_the_same(t_file_desc *f1, t_file_desc *f2, int Diff, char *path)
f1->stat.st_rdev != f2->stat.st_rdev)
diff |= DIFF_DEV; /* minor/major differ for device files */
if (DIFF(TIME) && f1->stat.st_mtime != f2->stat.st_mtime) {
- if (DIFF(LDATE) || !(S_ISLNK(f1->stat.st_mode)))
- diff |= DIFF_TIME; /* modification times diff */
+ if (DIFF(DIR) || !S_ISDIR(f1->stat.st_mode) || !S_ISDIR(f2->stat.st_mode))
+ if (DIFF(LDATE) || !(S_ISLNK(f1->stat.st_mode)))
+ diff |= DIFF_TIME; /* modification times diff */
}
if (DIFF(LINK) && S_ISLNK(f1->stat.st_mode) && S_ISLNK(f2->stat.st_mode)) {
char temp[BUFFER_LENGTH];