projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f7ea7
)
mdev: treat zero-length /dev/mdev.seq the same as "\n" one. Closes 7334
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 8 Sep 2014 16:19:15 +0000
(18:19 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 8 Sep 2014 16:19:15 +0000
(18:19 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mdev.c
patch
|
blob
|
history
diff --git
a/util-linux/mdev.c
b/util-linux/mdev.c
index e80b58f2e270396fcd58022d749c00d265bd328c..b2d56575feafa10ef0285a2dd4171c7412c22ccb 100644
(file)
--- a/
util-linux/mdev.c
+++ b/
util-linux/mdev.c
@@
-972,7
+972,7
@@
wait_for_seqfile(const char *seq)
break;
}
seqbuf[seqlen] = '\0';
- if (seqbuf[0] == '\n') {
+ if (seqbuf[0] == '\n'
|| seqbuf[0] == '\0'
) {
/* seed file: write out seq ASAP */
xwrite_str(seq_fd, seq);
xlseek(seq_fd, 0, SEEK_SET);