summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-18 19:13:51 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-18 19:13:51 (EST)
commit8d9e0ecb10ca5fd8b3ae1bdcf244291e75654740 (patch)
treee1f7e8888190cc3f9ca4a9dca95d931e009ff1c9 /libopkg/pkg.c
parent369f43cf475d8ca3054029e74126840949183418 (diff)
Assume a similar problem exists with this fdopen as fixed with r333.
git-svn-id: http://opkg.googlecode.com/svn/trunk@335 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg.c')
-rw-r--r--libopkg/pkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index f73cf5c..741f941 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -1031,7 +1031,7 @@ str_list_t *pkg_get_installed_files(opkg_conf_t *conf, pkg_t *pkg)
free(list_file_name);
return pkg->installed_files;
}
- list_file = fdopen(fd, "rw");
+ list_file = fdopen(fd, "rw+");
if (list_file == NULL) {
opkg_message(conf, OPKG_ERROR, "%s: fdopen: %s",
__FUNCTION__, strerror(errno));