Subject: CONF_FILES and disappearing directories
To: None <tech-pkg@netbsd.org>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-pkg
Date: 04/24/2004 00:15:18
	I noticed a bit of odd behaviour with the use of CONF_FILES.  The thing
that first drew my attention was that pkg_delete was complaining that
it couldn't remove the conf directory.  However, when I went and looked to
see what was still in there, I found that the directory actually _had_
been removed.  Searching through the ktrace output, I discovered that
pkg_delete was removing it twice, and complaining when the second rmdir
failed.  I suppose that's one bug: it shouldn't complain, or at least complain
differently, when the directory is already gone.
	Looking further, I tracked the double rmdir down to whether or not
CONF_FILES was set.  It seems that something goes and removes any directories
that are empty in the path leading to the config files.  Is it supposed
to do that?  There's no mention of that behavior in bsd.pkg.install.mk.

eric