Skip to main content

parse_id_output

Function parse_id_output 

Source
fn parse_id_output(out: &str) -> Option<(u64, u64)>
Expand description

Parse id -u; id -g output into (uid, gid).

Split out so the parse is testable without a Docker daemon, and so a malformed or empty probe result is None — never a silent (0, 0), which would produce a prompt file the exec user can neither read nor delete.