summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-05-27 16:49:25 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-05-27 16:49:25 +0300
commit95555ede4d732878d576415e5d338b0104b78ad6 (patch)
tree46c3d178e32f75480f834be897ce2b03f1a3bbd2 /src/url.c
parent38e54240a38266c0c1864e51e4ca7468a429646e (diff)
downloadapk-tools-95555ede4d732878d576415e5d338b0104b78ad6.tar.gz
apk-tools-95555ede4d732878d576415e5d338b0104b78ad6.tar.bz2
apk-tools-95555ede4d732878d576415e5d338b0104b78ad6.tar.xz
apk-tools-95555ede4d732878d576415e5d338b0104b78ad6.zip
db: more fix for read-only cache remounting
remount to read-write before trying to create the cache directory subdirs. fix a fd leak that might prevent remounting back to rw.
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/url.c b/src/url.c
index 0a17a7a..1fa9d66 100644
--- a/src/url.c
+++ b/src/url.c
@@ -136,6 +136,7 @@ int apk_url_download(const char *url, int atfd, const char *file)
exit(0);
}
+ close(fd);
waitpid(pid, &status, 0);
status = translate_wget(status);
if (status != 0) {