Subject: Re: pkg_add woes
To: Hubert Feyrer <>
From: Alistair Crooks <>
List: tech-pkg
Date: 07/16/1998 03:20:18
> > These problems are both fairly user-hostile, especially the former.
> I've attached a patch to pkg_* for this, can you please try & tell me if 
> this works for you?

Whilst this may fix Charles' problem, it will break de-installation of
any package which has a symbolic link to a directory.

revision 1.10
date: 1998/04/23 10:40:04;  author: agc;  state: Exp;  lines: +3 -3
In isdir() function, use lstat(2) instead of stat(2), so that we do
not traverse through any symbolic link.  This fix means that packages
which make symbolic links to directories can now be de-installed.

I suspect that we may have to pass an extra argument to the function, to
tell it whether to use stat(2) or lstat(2).