mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
file_utils: surface ENOENT when falling back to openat()
Link: https://discuss.linuxcontainers.org/t/error-failed-to-retrieve-pid-of-executing-child-process Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
78598e2b30
commit
ebb79ad32a
@ -663,7 +663,11 @@ int open_at(int dfd, const char *path, unsigned int o_flags,
|
||||
if (errno != ENOSYS)
|
||||
return -errno;
|
||||
|
||||
return openat(dfd, path, o_flags, mode);
|
||||
fd = openat(dfd, path, o_flags, mode);
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
||||
return move_fd(fd);
|
||||
}
|
||||
|
||||
int fd_make_nonblocking(int fd)
|
||||
|
Loading…
Reference in New Issue
Block a user