[LTP] [PATCH v2] configure.ac: Fix temporary directory ./confXXXXXX not cleanup
Li Zhijian
lizhijian@fujitsu.com
Tue Oct 15 03:15:52 CEST 2024
configure
->config.status
-> create temporary directory ./confXXXXXX
-> cd include/lapi/syscalls
-> ./regen.sh
-> cleanup ./confXXXXXX, registered in trap
Where config.status changes the working directory, ./confXXXXXX is not
removed as a result.
Reviewed-by: Li Wang <liwang@redhat.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Fixes: a07008fbec ("configure.ac: Generate linux_syscall_headers.h")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index b4ab81e265..d327974efa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,7 +386,7 @@ else
AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
fi
-AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh])
+AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh; cd - >/dev/null])
# custom functions
# NOTE: don't create custom functions for simple checks, put them into this file
--
2.41.0
More information about the ltp
mailing list