[14839] in Athena Bugs
sun4 8.0J: clean_tmp_areas
daemon@ATHENA.MIT.EDU (danw@MIT.EDU)
Mon Nov 25 14:01:16 1996
From: danw@MIT.EDU
To: bugs@MIT.EDU
Date: Mon, 25 Nov 1996 14:01:09 EST
System name: technomage
Type and version: SPARC/4 8.0J (2 update(s) to same version)
Display type: cgthree
What's wrong:
clean_tmp_areas behaves oddly with subdirs of temp
directories. Since find returns the directories before their
contents, it ends up not removing non-empty directories.
However, since it does manage to remove their contents, it
will succeed at removing the directory the next day. And
so on and so on. The result is that nested directory
structures in temp dirs are deleted layer by layer over
a period of several days.
What should have happened:
It should probably use `find -depth' to traverse the
directory structure in the right order