Ignore nanoseconds if -N is specified.

This commit is contained in:
Andrea Mazzoleni 2012-11-12 23:01:07 +01:00
parent d6678db702
commit dc3b03c4c4
6 changed files with 24 additions and 7 deletions

View file

@ -902,6 +902,10 @@ void state_read(struct snapraid_state* state)
}
hash = oathash32(hash, v_mtime_nsec);
/* ignore nanoseconds if asked to find by name */
if (state->find_by_name)
v_mtime_nsec = FILE_MTIME_NSEC_INVALID;
c = sgetc(f);
} else {
/* use a special value, meaning that we don't have this information */