#987801 john: strange rmdirs on purging

Package:
john
Source:
john
Description:
active password cracking tool
Submitter:
Christoph Anton Mitterer
Date:
2021-04-30 00:52:37 UTC
Severity:
normal
#987801#5
Date:
2021-04-30 00:47:01 UTC
From:
To:
Hi.

john's postrm does some strange rmdirs:
Purging configuration files for john (1.8.0-4) ...
rmdir: removing directory, '/var/lib/john'
rmdir: removing directory, '/var/lib'
rmdir: failed to remove directory '/var/lib': Directory not empty
rmdir: removing directory, '/var/run/john'
rmdir: removing directory, '/var/run'
rmdir: failed to remove directory '/var/run': Not a directory

caused by the:
	rmdir -pv /var/lib/john /var/run/john || true


Any reason for trying to rmdir the parents, too?


Cheers,
Chris.