]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - lib/blkid/devname.c
Fix blkid's last verification logic to work when the system clock is insane
[thirdparty/e2fsprogs.git] / lib / blkid / devname.c
index 0a13c477d455ea80d52da7062d678139d7698261..b2ff40f0221a16a47dabf6f4f35d08122c707789 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <limits.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -70,6 +71,7 @@ blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags)
                dev = blkid_new_dev();
                if (!dev)
                        return NULL;
+               dev->bid_time = INT_MIN;
                dev->bid_name = blkid_strdup(devname);
                dev->bid_cache = cache;
                list_add_tail(&dev->bid_devs, &cache->bic_devs);