commit ff2574899da20514b58e7878c47f1c1e8eb14423
parent cdefb66ed8945e87e3e41bb6a743e377bb3677d1
Author: Joris Vink <joris@coders.se>
Date: Wed, 20 May 2015 11:36:02 +0200
small style fix.
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -200,8 +200,11 @@ kore_worker_entry(struct kore_worker *kw)
}
if (skip_chroot == 0) {
- if (chroot(chroot_path) == -1)
- fatal("cannot chroot(\"%s\"): %s", chroot_path, errno_s);
+ if (chroot(chroot_path) == -1) {
+ fatal("cannot chroot(\"%s\"): %s",
+ chroot_path, errno_s);
+ }
+
if (chdir("/") == -1)
fatal("cannot chdir(\"/\"): %s", errno_s);
}