]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
tmpfile-util: Drop libgen.h
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 3 Apr 2025 04:39:17 +0000 (23:39 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 6 Apr 2025 02:24:33 +0000 (21:24 -0500)
We don't want the version of basename() that may leak memory - we want
the sane one. I remembered to add the missing.h while editing commit
aae48bc9f73a ("depmod: add tmpfile-util to generate temporary file") to
merge it, but completely forgot to remove the libgen.h. Fix it now.

Fixes: aae48bc9f73a ("depmod: add tmpfile-util to generate temporary file")
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/335
shared/tmpfile-util.c

index 06d2c6c701aeb3332b089d0d0ed1077691001e3b..4d6fc5570a508f3896b32c32ec345781302a810a 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <errno.h>
 #include <fcntl.h>
-#include <libgen.h>
 #include <limits.h>
 #include <stdarg.h>
 #include <stdlib.h>