From dc15c190b4f02448b39fe85778cc5278fca705e4 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 5 Jun 2021 10:36:45 -0400 Subject: Fixed a typo in the root fallback code. Thanks goes to Nova Forte for pointing it out to me. --- pullreqd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pullreqd.c b/pullreqd.c index 8be5122..039b8bc 100644 --- a/pullreqd.c +++ b/pullreqd.c @@ -53,7 +53,7 @@ void init_daemon(int change_dir, char *path) { * the root directory if path isn't set. */ if (change_dir) { - chdir((!path) ? path : "/"); + chdir((!path) ? "/" : path); } /* Close any open file descriptors. */ -- cgit v1.2.3-13-gbd6f