mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
libalpm/remove.c : switch back to lstat usage.
commit b55abdce7a changed every instance of lstat to alpm_stat to remove an eventual trailing /, but in remove.c, this is not wanted. Ref: http://www.archlinux.org/pipermail/pacman-dev/2007-December/010451.html Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c84feb92db
commit
457692b928
@ -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);
|
_alpm_log(PM_LOG_DEBUG, "file %s does not exist\n", file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user