mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Back out 1.14 until I reproduce trouble reports
This commit is contained in:
parent
4a028a883d
commit
99a0772b8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24253
@ -305,10 +305,8 @@ register struct state * const sp;
|
||||
doaccess = TRUE;
|
||||
name = fullname;
|
||||
}
|
||||
/* XXX Should really be issetguid(), but we don't have that */
|
||||
if (doaccess &&
|
||||
(getuid() != geteuid() || getgid() != getegid()) )
|
||||
return -1;
|
||||
if (doaccess && access(name, R_OK) != 0)
|
||||
return -1;
|
||||
if ((fid = open(name, OPEN_MODE)) == -1)
|
||||
return -1;
|
||||
if ((fstat(fid, &stab) < 0) || !S_ISREG(stab.st_mode))
|
||||
|
Loading…
Reference in New Issue
Block a user