Remove setuid, priveledges already revoked early in the right way
This commit is contained in:
parent
74163a02d6
commit
554cf12897
@ -74,10 +74,6 @@ instructions()
|
|||||||
if (pager = rindex(path, '/'))
|
if (pager = rindex(path, '/'))
|
||||||
++pager;
|
++pager;
|
||||||
pager = path;
|
pager = path;
|
||||||
if (setuid(getuid()) < 0) {
|
|
||||||
(void)fprintf(stderr, "cribbage: unable to setuid\n");
|
|
||||||
_exit(1);
|
|
||||||
}
|
|
||||||
execlp(path, pager, _PATH_INSTR, (char *)NULL);
|
execlp(path, pager, _PATH_INSTR, (char *)NULL);
|
||||||
(void)fprintf(stderr, "cribbage: %s.\n", strerror(errno));
|
(void)fprintf(stderr, "cribbage: %s.\n", strerror(errno));
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user