Explicitly use O_RDONLY instead of 0
This commit is contained in:
parent
4fc9d67654
commit
1e0ae120f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282453
@ -79,7 +79,7 @@ tgetent(char *bp, char *name, char *file)
|
|||||||
tbuf = bp;
|
tbuf = bp;
|
||||||
tf = 0;
|
tf = 0;
|
||||||
filename = file;
|
filename = file;
|
||||||
tf = open(filename, 0);
|
tf = open(filename, O_RDONLY);
|
||||||
if (tf < 0)
|
if (tf < 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user