Explicitly use O_RDONLY instead of 0
This commit is contained in:
parent
642b9f5173
commit
0c925e0867
@ -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