[git commit] mdev: treat zero-length /dev/mdev.seq the same as "\n" one. Closes 7334
Denys Vlasenko
vda.linux at googlemail.com
Mon Sep 8 16:19:15 UTC 2014
commit: http://git.busybox.net/busybox/commit/?id=26a8b9f1967d910033c516462c101100e041a9b4
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
util-linux/mdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index e80b58f..b2d5657 100644
--- 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);
More information about the busybox-cvs
mailing list