From 5d64bc5d8c7cdd2759e970f848e948fac9cc9577 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 16 Mar 2011 15:21:41 +0200 Subject: db: fix cache tmpfs detection comment out the code that was out for testing. duh. --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/database.c b/src/database.c index f2cd3b7..21b266b 100644 --- a/src/database.c +++ b/src/database.c @@ -1202,7 +1202,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts) /* figure out where to have the cache */ fd = openat(db->root_fd, apk_linked_cache_dir, O_RDONLY | O_CLOEXEC); - if (fd >= 0 && fstatfs(fd, &stfs) == 0 /*&& stfs.f_type != 0x01021994*/ /* TMPFS_MAGIC */) { + if (fd >= 0 && fstatfs(fd, &stfs) == 0 && stfs.f_type != 0x01021994 /* TMPFS_MAGIC */) { struct statvfs stvfs; db->cache_dir = apk_linked_cache_dir; -- cgit v1.2.3-70-g09d2