X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=snap.c;h=1fab237a58462d47aaaebddb27b297526ff9fb4b;hp=89d6004b6cb1731a73583d0d4ac07b469b3db916;hb=d184cc0fa0368ca089b1ae6f2162ccfc224bf28c;hpb=ee3cd16153a02196718951bd9c562b6fa2cf15dd diff --git a/snap.c b/snap.c index 89d6004..1fab237 100644 --- a/snap.c +++ b/snap.c @@ -101,7 +101,7 @@ static int is_snapshot(const char *dirname, int64_t now, int unit_interval, free(tmp); if (ret < 0) return 0; - if (num > now) + if (num > now || num < s->creation_time) return 0; s->completion_time = num; s->flags = SS_COMPLETE;