summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2006-07-09 15:27:59 +0000
committerstevesk <stevesk@openbsd.org>2006-07-09 15:27:59 +0000
commit95d5c3782d64c8d224ad22564487a6ebf5133a09 (patch)
treec7ae5e4a5e08d78216f42d02f193fd736617e7d0 /usr.bin/ssh/ssh-add.c
parentmove #include <fcntl.h> out of includes.h (diff)
downloadwireguard-openbsd-95d5c3782d64c8d224ad22564487a6ebf5133a09.tar.xz
wireguard-openbsd-95d5c3782d64c8d224ad22564487a6ebf5133a09.zip
use O_RDONLY vs. 0 in open(); no binary change
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r--usr.bin/ssh/ssh-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 1a594fab952..3b6c330f4c4 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-add.c,v 1.82 2006/07/09 15:15:11 stevesk Exp $ */
+/* $OpenBSD: ssh-add.c,v 1.83 2006/07/09 15:27:59 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -135,7 +135,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
char msg[1024];
int fd, perms_ok, ret = -1;
- if ((fd = open(filename, 0)) < 0) {
+ if ((fd = open(filename, O_RDONLY)) < 0) {
perror(filename);
return -1;
}