summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-11-17 12:26:23 +0100
committerGitHub <noreply@github.com>2021-11-17 12:26:23 +0100
commit4be297235ed2555be598661d0d082a1ed8794355 (patch)
tree8fb666fba9c3c32fcd62e375fd07ffdbf981f401 /lib
parentMerge pull request #9935 from idryzhov/fabricd-ifconf-cleanup (diff)
parentzebra: fix chdir judgment to avoid starting failed in a non-existent directory (diff)
downloadfrr-4be297235ed2555be598661d0d082a1ed8794355.tar.xz
frr-4be297235ed2555be598661d0d082a1ed8794355.zip
Merge pull request #10075 from myloft/fix-chdir-judge
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index b702fa785..3df623502 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -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);