X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=snap.c;h=41dc3296531001d88e9beb709b66c47d2fd2090d;hp=89d6004b6cb1731a73583d0d4ac07b469b3db916;hb=dd42f745333f7273a1ef1e81b090705473de8079;hpb=ee3cd16153a02196718951bd9c562b6fa2cf15dd diff --git a/snap.c b/snap.c index 89d6004..41dc329 100644 --- a/snap.c +++ b/snap.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Andre Noll + * Copyright (C) 2008-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;