From: kay.sievers@vrfy.org Date: Tue, 19 Oct 2004 03:51:16 +0000 (-0700) Subject: [PATCH] volume_id fix X-Git-Tag: 040~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1ba9336508dd1a06bb81bbf89b049e9e38f126;p=systemd [PATCH] volume_id fix I've been told that open() should not pass O_NONBLOCK. --- diff --git a/extras/volume_id/volume_id.c b/extras/volume_id/volume_id.c index f18baec6..0b43bc8e 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;