summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-19 05:51:16 +0200
committerGreg KH <gregkh@suse.de>2005-04-27 07:06:43 +0200
commit1b1ba9336508dd1a06bb81bbf89b049e9e38f126 (patch)
tree43554b1468bc4e886391e8b74476632e7d592a29
parent[PATCH] $local user (diff)
downloadsystemd-1b1ba9336508dd1a06bb81bbf89b049e9e38f126.tar.xz
systemd-1b1ba9336508dd1a06bb81bbf89b049e9e38f126.zip
[PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
-rw-r--r--extras/volume_id/volume_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/volume_id/volume_id.c b/extras/volume_id/volume_id.c
index f18baec6ee..0b43bc8efb 100644
--- a/extras/volume_id/volume_id.c
+++ b/extras/volume_id/volume_id.c
@@ -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;