diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-add.c,v 1.82 2006/07/09 15:15:11 stevesk Exp $ */ | 1 | /* $OpenBSD: ssh-add.c,v 1.83 2006/07/09 15:27:59 stevesk Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -135,7 +135,7 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
135 | char msg[1024]; | 135 | char msg[1024]; |
136 | int fd, perms_ok, ret = -1; | 136 | int fd, perms_ok, ret = -1; |
137 | 137 | ||
138 | if ((fd = open(filename, 0)) < 0) { | 138 | if ((fd = open(filename, O_RDONLY)) < 0) { |
139 | perror(filename); | 139 | perror(filename); |
140 | return -1; | 140 | return -1; |
141 | } | 141 | } |