- /* adventure doesn't need setuid-ness, so, just get rid of it */
- if (setuid(getuid()) < 0)
- warn("setuid");
+ /* revoke setgid privileges from dm */
+ setregid(getgid(), getgid());
unlink(argv[1]); /* Don't re-use the save */
goto l8; /* Get where we're going */
case 1: /* Couldn't open it */
unlink(argv[1]); /* Don't re-use the save */
goto l8; /* Get where we're going */
case 1: /* Couldn't open it */
ciao(); /* Do we quit? */
continue; /* Maybe not */
case 31: /* hours=8310 */
ciao(); /* Do we quit? */
continue; /* Maybe not */
case 31: /* hours=8310 */