* [LTP] [PATCH v2] configure.ac: Fix temporary directory ./confXXXXXX not cleanup
@ 2024-10-15 1:15 Li Zhijian via ltp
2024-10-15 12:19 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Li Zhijian via ltp @ 2024-10-15 1:15 UTC (permalink / raw)
To: ltp
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH v2] configure.ac: Fix temporary directory ./confXXXXXX not cleanup
2024-10-15 1:15 [LTP] [PATCH v2] configure.ac: Fix temporary directory ./confXXXXXX not cleanup Li Zhijian via ltp
@ 2024-10-15 12:19 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2024-10-15 12:19 UTC (permalink / raw)
To: Li Zhijian; +Cc: ltp
Hi Li Zhijian,
thanks a lot for your fix, merged!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-15 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 1:15 [LTP] [PATCH v2] configure.ac: Fix temporary directory ./confXXXXXX not cleanup Li Zhijian via ltp
2024-10-15 12:19 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox