Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apk-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hassan Albahri
apk-tools
Commits
5d64bc5d
Commit
5d64bc5d
authored
14 years ago
by
Timo Teräs
Browse files
Options
Downloads
Patches
Plain Diff
db: fix cache tmpfs detection
comment out the code that was out for testing. duh.
parent
415e230a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/database.c
+1
-1
1 addition, 1 deletion
src/database.c
with
1 addition
and
1 deletion
src/database.c
+
1
−
1
View file @
5d64bc5d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment