From 7e54927e01a160c44670f44200ad6782b30dc2c4 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Sun, 16 Feb 2014 18:27:55 -0500 Subject: opkg_remove: Differentiate between dirs and symlinks to dirs Calling rmdir() on a symlink to a directory won't work so check whether something is a symlink before adding to to the list of installed dirs. Signed-off-by: Paul Barker --- diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c index 5f4219b..34f9154 100644 --- a/libopkg/opkg_remove.c +++ b/libopkg/opkg_remove.c @@ -360,7 +360,7 @@ remove_data_files_and_list(pkg_t *pkg) /* File may have been claimed by another package. */ continue; - if (file_is_dir(file_name)) { + if (!file_is_symlink(file_name) && file_is_dir(file_name)) { str_list_append(&installed_dirs, file_name); continue; } -- cgit v0.9.1