index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2007-12-22 17:47:19 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-28 19:55:38 -0600 |
commit | 457692b928617cf15d012477af49ced8a3060e9c (patch) | |
tree | cbb911b236989d4ae01ecb062822ad8f7049b282 | |
parent | c84feb92dbbc6d5f60cb58db53cfc372acf0516c (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 6 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 0e8b57aa..4f6d6473 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -203,7 +203,11 @@ static void unlink_file(pmpkg_t *info, alpm_list_t *lp, pmtrans_t *trans) } } - if(_alpm_lstat(file, &buf)) { + /* we want to do a lstat here, and not a _alpm_lstat. + * if a directory in the package is actually a directory symlink on the + * filesystem, we want to work with the linked directory instead of the + * actual symlink */ + if(lstat(file, &buf)) { _alpm_log(PM_LOG_DEBUG, "file %s does not exist\n", file); return; } |