[LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
Li Zhijian
lizhijian@fujitsu.com
Mon Oct 14 02:53:38 CEST 2024
configure
->config.status
-> create temperory 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.
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