sbase

commit0545d32ce98dd8a9eeafe829e227b9a779383aa0parent6be7eaff1b07845aa80b3bba8bc4de48b2305146Author: FRIGN <dev@frign.de>
Date: Fri, 15 May 2015 13:28:39 +0200
Handle '-' consistently
In general, POSIX does not define /dev/std{in, out, err} because it
does not want to depend on the dev-filesystem.
For utilities, it thus introduced the '-'-keyword to denote standard
input (and output in some cases) and the programs have to deal with
it accordingly.
Sadly, the design of many tools doesn't allow strict shell-redirections
and many scripts don't even use this feature when possible.
Thus, we made the decision to implement it consistently across all
tools where it makes sense (namely those which read files).
Along the way, I spotted some behavioural bugs in libutil/crypt.c and
others where it was forgotten to fshut the files after use.
Diffstat: