diff options
| author | tv <tv@krebsco.de> | 2026-12-04 18:09:38 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-04 18:59:12 +0000 |
| commit | 5c6c878ae8c7ce8b04f4b540a04cbed7a4b37f38 (patch) | |
| tree | 89ea2ea643809dca4242110df99f8d3973aaeadd /src/transport/firewall.rs | |
| parent | 9f64a8d003bd301a6499bf7a6f60e6cf0b533162 (diff) | |
A value that is gone is not a failure: a key taken out of a secret
store is one thing, a wrong passphrase another. An importer says in its
table what tells the first: absent.status = N of a command, that exit
status of a normal exit; absent.missing = true of a file; absent.unset =
true of an environment variable. Nothing is built in, as tools disagree,
and nothing is absent unless the importer says so.
Any status may be said but 0, which says that there is a value: which
one nothing else gives is the writer's to know, and the documentation
tells what gives which. A script says its status with exit, and the
shell exits with exactly that; where a shell exits by itself (a line it
can't read, an expansion that fails), POSIX leaves the status open
within 1 to 125, and bash, dash and BusyBox ash use 1 and 2; 126, 127
and those above 128 are a command that can't be run, one that isn't
found, and one a signal killed. So a script says absent with a status
from 3 to 125.
fetch and its kin give the typed error import::Absent then, with the
importer as written and what told, and Importer::found_in tells it from
a value. Only the importer asked is absent: one inside another that is
makes that one fail. continuum takes an option's absent value for a
failure.
Diffstat (limited to 'src/transport/firewall.rs')
0 files changed, 0 insertions, 0 deletions
