From a254de408e067df7de94ce9176e104bc2b3a0e67 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 26 Jan 2023 20:23:11 +0100 Subject: vlib: chdir to runtime_dir Type: improvement Change-Id: Id8ab75ef4384a1029ab7ee84048f347708307830 Signed-off-by: Damjan Marion --- src/vlib/unix/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vlib') diff --git a/src/vlib/unix/main.c b/src/vlib/unix/main.c index 6b1a32cfee6..3991566ee01 100644 --- a/src/vlib/unix/main.c +++ b/src/vlib/unix/main.c @@ -513,6 +513,9 @@ unix_config (vlib_main_t * vm, unformat_input_t * input) if (error) return error; + if (chdir ((char *) um->runtime_dir) < 0) + return clib_error_return_unix (0, "chdir('%s')", um->runtime_dir); + error = setup_signal_handlers (um); if (error) return error; -- cgit 1.2.3-korg