]> arthur.barton.de Git - bup.git/commit
Disallow argc < 1 (for now just crash)
authorRob Browning <rlb@defaultvalue.org>
Tue, 3 May 2022 00:54:54 +0000 (19:54 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 3 May 2022 01:16:35 +0000 (20:16 -0500)
commitc6fdb2298c5cbcc6f1d11aec6a6c091efee74be9
tree413979980f16d9d9c5ce94473030db2f3c3dff18
parent4e835736d28e97724c90350f11a813872cbdb8a6
Disallow argc < 1 (for now just crash)

Since argc is allowed to be zero, and it's possible that any number of
things haven't been written to handle it, just crash for now if we
encounter it.

cf. https://lwn.net/Articles/882799/

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
dev/python.c
lib/cmd/bup.c
src/bup/compat.c