sbase/libutil
FRIGN 9b06720f62 Refactor cryptcheck() to allow multiple list-files and stdin
Previously, it was not possible to use

sha1sum test.c | sha1sum -c

because the program would not differenciate between an empty
argument and a non-specified argument.
Moreover, why not allow this?

sha1sum -c hashlist1 hashlist2

Digging deeper I found that using function pointers and a
modification in the crypt-backend might simplify the program
a lot by passing the argument-list to both cryptmain and
cryptcheck.
Allowing more than one list-file to be specified is also
consistent with what the other implementations support,
so we not only have simpler code, we also do not silently
break if there's a script around passing multiple files to
check.
2015-03-01 22:51:52 +01:00
..
agetcwd.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
apathmax.c Use < 0 instead of == -1 2014-11-19 20:09:29 +00:00
concat.c Switch concat() to use fread() and fwrite() 2015-02-09 15:24:03 +00:00
cp.c Fix recurse() prototype and convert char to int flags 2015-02-16 16:23:12 +00:00
crypt.c Refactor cryptcheck() to allow multiple list-files and stdin 2015-03-01 22:51:52 +01:00
ealloc.c add estrndup 2015-02-11 01:17:21 +00:00
enmasse.c cp: add symlink deref flags -H and -L for cp and mv 2015-02-09 22:54:52 +00:00
eprintf.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
eregcomp.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
estrtod.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
fnck.c cp: add symlink deref flags -H and -L for cp and mv 2015-02-09 22:54:52 +00:00
getlines.c Make getlines() less verbose 2015-02-12 14:34:07 +00:00
human.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
md5.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
mode.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
putword.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
recurse.c Fix recurse() prototype and convert char to int flags 2015-02-16 16:23:12 +00:00
rm.c Fix recurse() prototype and convert char to int flags 2015-02-16 16:23:12 +00:00
sha1.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
sha256.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
sha512.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
strcasestr.c Argh - include strings.h 2014-11-21 00:03:30 +00:00
strlcat.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
strlcpy.c Rename util/ to libutil/ 2014-11-17 16:48:34 +00:00
strsep.c Import strsep() from musl libc 2015-01-25 17:48:11 +00:00
strtonum.c Use strtonum and libutf in test(1), refactor code and manpage 2015-02-09 22:21:23 +01:00
unescape.c Add \e, \", \' and hex-escapes (\xH[H]) to unescape() 2015-02-14 22:55:37 +01:00