diff options
Diffstat (limited to 'libopkg/pkg.c')
-rw-r--r-- | libopkg/pkg.c | 2 |
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)); |