[Bug debuginfod/26125] during debuginfod cache cleanup, try harder to rmdir empty dirs

mliska at suse dot cz sourceware-bugzilla@sourceware.org
Fri Nov 27 11:08:36 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26125

Martin Liska <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mliska at suse dot cz

--- Comment #1 from Martin Liska <mliska at suse dot cz> ---
All right Frank, do you speak about debuginfod daemon cache or about
debuginfod-find cache (/home/marxin/.cache/debuginfod_client/ in my case)?

For the latter, I really see empty folders left.
The code container removal code:

        case FTS_DP:
          /* Remove if empty. */
          (void) rmdir (f->fts_path);
          break;

but it's unrachable as the following continue:

      if (regexec (&re, f->fts_path, 0, NULL, 0) != 0)
        continue;

for e.g.

(gdb) p f->fts_path
$4 = 0x425350
"/home/marxin/.cache/debuginfod_client/e0d3f78f324d5aeaa35e6e651ac24f9ac52ccdb7"

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list