diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 12:26:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 12:26:23 +0100 |
commit | 4be297235ed2555be598661d0d082a1ed8794355 (patch) | |
tree | 8fb666fba9c3c32fcd62e375fd07ffdbf981f401 /lib | |
parent | Merge pull request #9935 from idryzhov/fabricd-ifconf-cleanup (diff) | |
parent | zebra: fix chdir judgment to avoid starting failed in a non-existent directory (diff) | |
download | frr-4be297235ed2555be598661d0d082a1ed8794355.tar.xz frr-4be297235ed2555be598661d0d082a1ed8794355.zip |
Merge pull request #10075 from myloft/fix-chdir-judge
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2998,7 +2998,7 @@ static void vty_save_cwd(void) * the whole world is coming down around us * Hence not worrying about it too much. */ - if (!chdir(SYSCONFDIR)) { + if (chdir(SYSCONFDIR)) { flog_err_sys(EC_LIB_SYSTEM_CALL, "Failure to chdir to %s, errno: %d", SYSCONFDIR, errno); |