mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:11:08 +01:00
When there is a file that can't be deleted due to checksum mismatch print name
of that file to stdout to simplify debugging. IMO it was a mistake to print this warning only when `verbose' mode is on. MFC after: 1 month
This commit is contained in:
parent
3ec96e7a64
commit
94d81832dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81044
@ -401,8 +401,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, Package *pkg)
|
||||
if ((cp = MD5File(tmp, buf)) != NULL) {
|
||||
/* Mismatch? */
|
||||
if (strcmp(cp, p->next->name + 4)) {
|
||||
if (Verbose)
|
||||
printf("%s fails original MD5 checksum - %s\n",
|
||||
warnx("`%s' fails original MD5 checksum - %s",
|
||||
tmp, Force ? "deleted anyway." : "not deleted.");
|
||||
if (!Force) {
|
||||
fail = FAIL;
|
||||
|
Loading…
Reference in New Issue
Block a user