Explicitly use O_RDONLY instead of 0
This commit is contained in:
parent
4fc9d67654
commit
1e0ae120f5
@ -79,7 +79,7 @@ tgetent(char *bp, char *name, char *file)
|
||||
tbuf = bp;
|
||||
tf = 0;
|
||||
filename = file;
|
||||
tf = open(filename, 0);
|
||||
tf = open(filename, O_RDONLY);
|
||||
if (tf < 0)
|
||||
return (-1);
|
||||
for (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user