Oops, setreuid() also needed before and after opening/closing the recover file

in recover().
2.2 candidate.
This commit is contained in:
max 1997-01-30 01:51:45 +00:00
parent a29801b198
commit 80d909b5a7

View File

@ -150,6 +150,7 @@ char *s;
register int i;
int fdesc;
setreuid(geteuid(), getuid());
if ((fdesc = open (s,0)) == -1)
norec (s);
read (fdesc,board,sizeof board);
@ -164,6 +165,7 @@ char *s;
read (fdesc,&gvalue,sizeof gvalue);
read (fdesc,&raflag,sizeof raflag);
close (fdesc);
setreuid(geteuid(), getuid());
rflag = 1;
}