mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Treat 'end\0', 'end\n', 'end\r\n' as trailer line, see rev 1.2
This commit is contained in:
parent
9b4e82f125
commit
3e4c0ae52d
1 changed files with 3 additions and 1 deletions
|
|
@ -255,7 +255,9 @@ decode2(flag)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!fgets(buf, sizeof(buf), stdin) || strncmp(buf, "end", 3) || (buf[3] && buf[3] != '\n')) {
|
||||
if (fgets(buf, sizeof(buf), stdin) == NULL ||
|
||||
(strcmp(buf, "end") && strcmp(buf, "end\n") &&
|
||||
strcmp(buf, "end\r\n"))) {
|
||||
(void)fprintf(stderr, "uudecode: %s: no \"end\" line.\n",
|
||||
filename);
|
||||
return(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue