sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 26761aa4fb825ab9de45d71a1281fbd5b581f19b
parent 3c7df37bc636538d024937e891d0959a28c370f7
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu,  2 Apr 2026 23:50:07 +0200

crypt: Cosmetically improve error message

Diffstat:
Mlibutil/crypt.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libutil/crypt.c b/libutil/crypt.c @@ -109,15 +109,18 @@ cryptcheck(int argc, char *argv[], struct crypt_ops *ops, uint8_t *md, size_t sz } if (formatsucks) { - weprintf("%d lines are improperly formatted\n", formatsucks); + weprintf("%d improperly formatted line%s\n", + formatsucks, formatsucks > 1 ? "s" : ""); ret = 1; } if (noread) { - weprintf("%d listed file could not be read\n", noread); + weprintf("%d listed file%s could not be read\n", + noread, noread > 1 ? "s" : ""); ret = 1; } if (nonmatch) { - weprintf("%d computed checksums did NOT match\n", nonmatch); + weprintf("%d computed checksum%s did NOT match\n", + nonmatch, nonmatch > 1 ? "s" : ""); ret = 1; }