Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-03 12:45:38 +02:00
parent bd05b9574a
commit f3cae2a791

View File

@ -281,7 +281,7 @@ impl PidFd {
let num = parts.next();
let name = parts.next();
let path = parts.next();
if !num.is_some() || !name.is_some() || !path.is_some() || parts.next().is_some() {
if num.is_none() || name.is_none() || path.is_none() || parts.next().is_some() {
bail!("failed to parse cgroup line: {:?}", line);
}