summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-03-16 15:21:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-03-16 15:21:41 +0200
commit5d64bc5d8c7cdd2759e970f848e948fac9cc9577 (patch)
tree59521b0f9f493170bb798f49086e974fec4e9656 /src
parent415e230a7f0874206d4bbe2662c9f9cbf7e4c307 (diff)
downloadapk-tools-5d64bc5d8c7cdd2759e970f848e948fac9cc9577.tar.gz
apk-tools-5d64bc5d8c7cdd2759e970f848e948fac9cc9577.tar.bz2
apk-tools-5d64bc5d8c7cdd2759e970f848e948fac9cc9577.tar.xz
apk-tools-5d64bc5d8c7cdd2759e970f848e948fac9cc9577.zip
db: fix cache tmpfs detection
comment out the code that was out for testing. duh.
Diffstat (limited to 'src')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
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;