1
0
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:
kay.sievers@vrfy.org 2004-10-18 20:51:16 -07:00 committed by Greg KH
parent 9cd1b46a13
commit 1b1ba93365

View File

@ -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;