kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit cdefb66ed8945e87e3e41bb6a743e377bb3677d1
parent 15fd95450123e9940eb82174213ac988b148b4bc
Author: Joris Vink <joris@coders.se>
Date:   Wed, 20 May 2015 11:34:57 +0200

Spacing.

Diffstat:
src/config.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -143,6 +143,7 @@ kore_parse_config(void) if (skip_chroot != 1 && chroot_path == NULL) { fatal("missing a chroot path"); } + if (getuid() != 0 && skip_chroot == 0) { fatal("cannot chroot, use -n to skip it"); } @@ -150,6 +151,7 @@ kore_parse_config(void) if (skip_runas != 1 && runas_user == NULL) { fatal("missing runas user"); } + if (getuid() != 0 && skip_runas == 0) { fatal("cannot drop privileges, use -p to skip it"); }