diff options
Diffstat (limited to 'FICS/makerank.c')
| -rw-r--r-- | FICS/makerank.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c index e50886a..e2d9e35 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -347,7 +347,10 @@ main(int argc, char **argv) } else { if (!is_super_user()) errx(1, "Need root privileges"); - else if (drop_root_privileges(FICS_PREFIX) == -1) + else if (check_prep_done(FICS_PREFIX) == -1) { + errx(1, "Prep not done. Solve it by starting the FICS " + "once (as root)."); + } else if (drop_root_privileges(FICS_PREFIX) == -1) errx(1, "Privdrop failed"); } |
