7 void droproot(const char *fatal
)
14 strerr_die2x(111,fatal
,"$ROOT not set");
16 strerr_die4sys(111,fatal
,"unable to chdir to ",x
,": ");
17 if (chroot(".") == -1)
18 strerr_die4sys(111,fatal
,"unable to chroot to ",x
,": ");
22 strerr_die2x(111,fatal
,"$GID not set");
24 if (prot_gid((int) id
) == -1)
25 strerr_die2sys(111,fatal
,"unable to setgid: ");
29 strerr_die2x(111,fatal
,"$UID not set");
31 if (prot_uid((int) id
) == -1)
32 strerr_die2sys(111,fatal
,"unable to setuid: ");