diff options
author | Willy Tarreau <w@1wt.eu> | 2006-07-16 14:53:48 +0200 |
---|---|---|
committer | Willy Tarreau <willy@wtap.(none)> | 2006-07-26 11:56:35 +0200 |
commit | c6c7af73954503fb951863f30ef563aecddfbdc3 (patch) | |
tree | 186fa424e932612c5ca885559772c535af3ddb83 /flx/fct1.c | |
parent | [RELEASE] flxutils-0.1.28 (diff) | |
download | flxutils-c6c7af73954503fb951863f30ef563aecddfbdc3.tar.xz |
[RELEASE] flxutils-0.1.29v0.1.29
Diffstat (limited to 'flx/fct1.c')
-rw-r--r-- | flx/fct1.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]; |