modprobe: fallback to text files if binary index is wrong version
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Sun, 8 Feb 2009 11:41:33 +0000 (11:41 +0000)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 10 Feb 2009 15:15:09 +0000 (16:15 +0100)
commit7c5676eb30e0e464f9e32a4dea24f9886924e6e1
treedaecb4e63941624aa212ac9b4c06a67f968293c1
parent2b94017de414453fbf535e58394389b589b17d89
modprobe: fallback to text files if binary index is wrong version

The version check is moved to a new index_file_open() function.
Wrong version is indicated by a NULL return with errno set to EINVAL.

index.c gains a call to fopen(), so it now needs to #include
"testing.h" for the test harness hooks.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
index.c
index.h
modindex.c
modprobe.c
testing.h