aboutsummaryrefslogtreecommitdiff
path: root/flx/fct1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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];