projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
060cf92
)
Use setuid(geteuid()) rather than setruid(geteuid()); seems tto be the
author
Garrett Wollman
<wollman@FreeBSD.org>
Mon, 4 Apr 1994 19:49:12 +0000
(19:49 +0000)
committer
Garrett Wollman
<wollman@FreeBSD.org>
Mon, 4 Apr 1994 19:49:12 +0000
(19:49 +0000)
right thing to do, as this program never un-renounces.
games/sail/dr_main.c
patch
|
blob
|
blame
|
history
diff --git
a/games/sail/dr_main.c
b/games/sail/dr_main.c
index
c6e4968
..
7fe24f1
100644
(file)
--- a/
games/sail/dr_main.c
+++ b/
games/sail/dr_main.c
@@
-48,7
+48,7
@@
dr_main()
(void) signal(SIGQUIT, SIG_IGN);
(void) signal(SIGTSTP, SIG_IGN);
if (issetuid)
(void) signal(SIGQUIT, SIG_IGN);
(void) signal(SIGTSTP, SIG_IGN);
if (issetuid)
- (void) set
r
uid(geteuid());
+ (void) setuid(geteuid());
if (game < 0 || game >= NSCENE) {
fprintf(stderr, "DRIVER: Bad game number %d\n", game);
exit(1);
if (game < 0 || game >= NSCENE) {
fprintf(stderr, "DRIVER: Bad game number %d\n", game);
exit(1);