mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
This commit is contained in:
parent
9cd1b46a13
commit
1b1ba93365
@ -2128,7 +2128,7 @@ struct volume_id *volume_id_open_node(const char *path)
|
||||
struct volume_id *id;
|
||||
int fd;
|
||||
|
||||
fd = open(path, O_RDONLY | O_NONBLOCK);
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
dbg("unable to open '%s'", path);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user