[Bug debuginfod/26125] during debuginfod cache cleanup, try harder to rmdir empty dirs
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Fri Nov 27 11:29:35 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26125
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Could we simply always try to remove the parent dir if the file pattern matches
and we do an unlink?
case FTS_F:
if (time(NULL) - f->fts_statp->st_atime >= max_unused_age)
{
unlink (f->fts_path);
/* Remove if now empty. */
(void) rmdir (dirname (f->fts_path));
}
break;
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list