]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite/path: defer dlsym() until needed
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 24 May 2025 12:10:50 +0000 (13:10 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 29 May 2025 22:30:13 +0000 (17:30 -0500)
commit90d010b7ea55e2a0ac0314328de0c51cf1b21ec2
treeb5c775b87de27c53425089cff871fcf5421d0c50
parentaedcfbab7425ea09acbe96a7120d714289fa4a1a
testsuite/path: defer dlsym() until needed

There is no point in fetching the symbol if we already know we don't
need it. Defer the get_libc_func() after get_rootpath() and trap_path().

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/355
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/path.c