[news.software.b] Non-empty spool directories- another problem

john@moncol.UUCP (John Ruschmeyer) (11/10/86)

It would appear that the current reorganization may have brought up another
flaw in the 'rmgroup' script.

A few weeks ago, the removal of talk.religion brought out a flaw in the
pre-2.11 rmgroup script. Not only was talk.religion removed, but so were
the spool driectories for talk.religion.misc, etc. The fix basically
consisted of changing an 'rm -rf' of the newsgroup's spool directory to an
'rm *' followed by an 'rmdir' of the directory.

Today I ran the latest checkgroups message, however, and got hit with the
opposite problem. In essence, I was removing net.astro and net.astro.expert
in that order. When rmgroup got to net.astro, it removed all the net.astro
files, but couldn't remove /usr/spool/news/net/astro since it was a
non-empty directory. Next it went to remove net.astro.expert which went
fine. The only problem is that now I have an "orphaned"
/usr/spool/net/astro directory.

Conceivably, this will also be a problem when we eventually go to remove
'net'.

At the moment, I don't have a good suggestion for a fix. I did want to
point this out for the benefit of those with small filesystems, etc.

-- 
Name:		John Ruschmeyer
US Mail:	Monmouth College, W. Long Branch, NJ 07764
Phone:		(201) 571-3557
UUCP:		...!vax135!petsd!moncol!john	...!princeton!moncol!john
						   ...!pesnta!moncol!john

	This isn't a coronation- this is bad comedy.
						-Galvatron