Commit 6b9550e2 by Christian Brauner Committed by Stéphane Graber

start: use lxc_safe_int()

parent 74dd0998
...@@ -215,7 +215,10 @@ restart: ...@@ -215,7 +215,10 @@ restart:
if (!strcmp(direntp->d_name, "..")) if (!strcmp(direntp->d_name, ".."))
continue; continue;
fd = atoi(direntp->d_name); if (lxc_safe_int(direntp->d_name, &fd) < 0) {
INFO("Could not parse file descriptor for: %s", direntp->d_name);
continue;
}
if (fd == fddir || fd == lxc_log_fd || fd == fd_to_ignore) if (fd == fddir || fd == lxc_log_fd || fd == fd_to_ignore)
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment