Skip to content

Commit

Permalink
configure.ac: Fix temporary directory ./confXXXXXX not cleanup
Browse files Browse the repository at this point in the history
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.

Fixes: a07008f ("configure.ac: Generate linux_syscall_headers.h")
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Li Wang <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Li Zhijian <[email protected]>
  • Loading branch information
zhijianli88 authored and pevik committed Oct 15, 2024
1 parent aa90238 commit 67394e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67394e8

Please sign in to comment.