Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Sep 2000 12:36:12 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        ports@FreeBSD.org, asami@FreeBSD.org
Subject:   Re: Handling of symlinks to directory in pkg_delete [patch for review]
Message-ID:  <39BA048B.FAD69A3F@FreeBSD.org>
References:  <39B351FA.A6CFD24F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Sobolev wrote:

> Hi!
>
> I wonder if anybody noticed that handling of symlinks in pkg_delete is somewhat
> broken. Particularly, the problems exist with symlinks to a directories. The
> pkg_delete code considers those symlinks as a directories (if the referred
> directory exists), however they are not, and thus tries to delete it using
> rmdir(2), which obviously doesn't work. The workaround exists to delete
> directory symlink points to first and only then remove corresponding symlinks,
> however it looks like an ugly hack (see lesstif's PLIST for example). The
> attached patch is expected to solve this problem. Also in this message I'm
> attaching small fake package, which exposes the bug (it consist of one symlink
> and one directory this symlink points to).

I'm disappointed that nobody told something about that. You are forcing me to commit
it with Reviewed by: silence' verdict, which I certainly don't like to do. :(

-Maxim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39BA048B.FAD69A3F>