chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd1b46
)
[PATCH] volume_id fix
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Tue, 19 Oct 2004 03:51:16 +0000
(20:51 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 05:06:43 +0000
(22:06 -0700)
I've been told that open() should not pass O_NONBLOCK.
extras/volume_id/volume_id.c
patch
|
blob
|
history
diff --git
a/extras/volume_id/volume_id.c
b/extras/volume_id/volume_id.c
index f18baec6eea9172b9c3d662fd40d45c33d6ed3f1..0b43bc8efb84ffd6afd263abce483b840c538ded 100644
(file)
--- 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;