summaryrefslogtreecommitdiff
path: root/usr.bin/less/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/decode.c')
-rw-r--r--usr.bin/less/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/decode.c b/usr.bin/less/decode.c
index 66b116e7469..85db7eadcff 100644
--- a/usr.bin/less/decode.c
+++ b/usr.bin/less/decode.c
@@ -623,7 +623,7 @@ lesskey(char *filename, int sysvar)
* Try to open the lesskey file.
*/
filename = shell_unquote(filename);
- f = open(filename, OPEN_READ);
+ f = open(filename, O_RDONLY);
free(filename);
if (f < 0)
return (1);