summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-05 10:36:45 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-05 10:36:45 -0400
commitdc15c190b4f02448b39fe85778cc5278fca705e4 (patch)
tree16f66668b5a93885b99cd4869095bdb283d26b69 /pullreqd.c
parentc3808ada2e031b8362ac5326cecd37b7299d981c (diff)
Fixed a typo in the root fallback code.
Thanks goes to Nova Forte for pointing it out to me.
Diffstat (limited to 'pullreqd.c')
-rw-r--r--pullreqd.c2
1 files changed, 1 insertions, 1 deletions
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. */