[PATCH] volume_id fix

I've been told that open() should not pass O_NONBLOCK.
This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 22:06:43 -07:00
committed by Greg KH
parent 9cd1b46a13
commit 1b1ba93365
+1 -1
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;