Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct: fixStdioPermissions: skip chown if not needed
Since we already called fstat, we know the current file uid. In case it is the same as the one we want it to be, there's no point in trying chown. Remove the specific /dev/null check, as the above also covers it (comparing /dev/null uid with itself is true). This also fixes runc exec with read-only /dev for root user. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information