Implement the magic-cookie check and its test.

This commit is contained in:
Eric S. Raymond 2023-04-06 19:03:02 -04:00
parent d16822a583
commit 58cf204eba
4 changed files with 34 additions and 1 deletions

8
tests/badmagic.log Normal file
View file

@ -0,0 +1,8 @@
## Resume from filename withoy the right magic at the front
# SPDX-FileCopyrightText: Eric S. Raymond <esr@thyrsus.com>
# SPDX-License-Identifier: BSD-2-Clause
#NOCOMPARE advent430 doesn't have this test
n
resume
y
../main.o