start: use lxc_safe_int()

parent 7e5af997
...@@ -223,7 +223,10 @@ restart: ...@@ -223,7 +223,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