Remove setuid, priveledges already revoked early in the right way

This commit is contained in:
Andrey A. Chernov 1997-09-24 21:25:48 +00:00
parent 74163a02d6
commit 554cf12897

View File

@ -74,10 +74,6 @@ instructions()
if (pager = rindex(path, '/'))
++pager;
pager = path;
if (setuid(getuid()) < 0) {
(void)fprintf(stderr, "cribbage: unable to setuid\n");
_exit(1);
}
execlp(path, pager, _PATH_INSTR, (char *)NULL);
(void)fprintf(stderr, "cribbage: %s.\n", strerror(errno));
_exit(1);