← Commit list

26a8b9f19

Denys Vlasenko
Denys Vlasenko
2014-09-08
SUCCESS Duration: 155s

Subject

mdev: treat zero-length /dev/mdev.seq the same as "\n" one. Closes 7334

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mdev.c+1 -1
@@ -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);