logo

utils-std

Collection of commonly available Unix tools
commit: 862666b6b79f4e47aae2f30dde7b59aee08d8ae7
parent 03a61f356577d9069bf8770a97e0d78dc6b720f5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 27 Apr 2024 11:12:10 +0200

Revert "lib/truncation: Error out on unknown operator"

Fallback to regular operation is intended.

This reverts commit e78d2eca77890c66b46aff7ea0bb1d89b038d265.

Diffstat:

Mlib/truncation.c4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/truncation.c b/lib/truncation.c @@ -136,9 +136,7 @@ parse_size(char *arg, struct truncation *buf) op = OP_CHK_UP; arg++; break; - default: - fprintf(stderr, "%s: Unknown size operator '%c'\n", argv0, arg[0]); - return -1; + // no default case intended } assert(errno == 0);