Skip to content
Snippets Groups Projects
Commit 9d5b2309 authored by Sertonix's avatar Sertonix Committed by Timo Teräs
Browse files

io: use O_NONBLOCK when reading xattrs

This is to avoid issues when opening fifos cause without O_NONBLOCK they
wait until the other end is opened.

(cherry picked from commit c620d34c)
parent 559b2896
No related branches found
No related tags found
No related merge requests found
......@@ -753,7 +753,7 @@ int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags,
char val[1024], buf[1024];
r = 0;
fd = openat(atfd, filename, O_RDONLY);
fd = openat(atfd, filename, O_RDONLY|O_NONBLOCK);
if (fd >= 0) {
len = flistxattr(fd, buf, sizeof(buf));
if (len > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment