svn commit: r206132 - head/usr.sbin/pkg_install/lib
Florent Thoumie
flz at FreeBSD.org
Sat Apr 3 10:55:11 UTC 2010
Author: flz
Date: Sat Apr 3 10:55:11 2010
New Revision: 206132
URL: http://svn.freebsd.org/changeset/base/206132
Log:
Fix pkg_delete, check if the file we're trying to delete is a
symlink before complaining that it doesn't exist. Typical case
would be a leftover library symlink that's left over after the
actual library has been removed.
Reported by: tabthorpe
Modified:
head/usr.sbin/pkg_install/lib/plist.c
Modified: head/usr.sbin/pkg_install/lib/plist.c
==============================================================================
--- head/usr.sbin/pkg_install/lib/plist.c Sat Apr 3 10:07:10 2010 (r206131)
+++ head/usr.sbin/pkg_install/lib/plist.c Sat Apr 3 10:55:11 2010 (r206132)
@@ -551,7 +551,7 @@ delete_hierarchy(const char *dir, Boolea
char *cp1, *cp2;
cp1 = cp2 = strdup(dir);
- if (!fexists(dir)) {
+ if (!fexists(dir) && !issymlink(dir)) {
if (!ign_err)
warnx("%s '%s' doesn't exist",
isdir(dir) ? "directory" : "file", dir);
More information about the svn-src-all
mailing list