diff options
author | imp <imp@FreeBSD.org> | 2006-02-03 06:12:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-02-03 06:12:10 +0000 |
commit | ea5c1281b01cb3c0575e67afe0aef67866ec906a (patch) | |
tree | 1a281f78441e04c34200d9123462ba43c625bdf3 /usr.sbin/config/mkmakefile.c | |
parent | 97e56c4ce5af57691682165f7de4175092a1eed9 (diff) | |
download | FreeBSD-src-ea5c1281b01cb3c0575e67afe0aef67866ec906a.zip FreeBSD-src-ea5c1281b01cb3c0575e67afe0aef67866ec906a.tar.gz |
Allow newer config versions to config older versions with the same
major number.
Reviewed by: ru@, jhb@, arch@ (a few months ago)
# this is subject to refinement based on experience.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 655d7e9..10e7ba8 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -153,7 +153,8 @@ makefile(void) do_clean(ofp); else if (strncmp(line, "%VERSREQ=", sizeof("%VERSREQ=") - 1) == 0) { versreq = atoi(line + sizeof("%VERSREQ=") - 1); - if (versreq != CONFIGVERS) { + if (MAJOR_VERS(versreq) != MAJOR_VERS(CONFIGVERS) || + versreq > CONFIGVERS) { fprintf(stderr, "ERROR: version of config(8) does not match kernel!\n"); fprintf(stderr, "config version = %d, ", CONFIGVERS); fprintf(stderr, "version required = %d\n\n", versreq); |