mirror of git://anongit.mindrot.org/openssh.git
- stevesk@cvs.openbsd.org 2006/07/09 15:27:59
[ssh-add.c] use O_RDONLY vs. 0 in open(); no binary change
This commit is contained in:
parent
57cf638577
commit
211838d8e2
|
@ -74,6 +74,9 @@
|
|||
[ssh-add.c ssh-agent.c ssh-keygen.c ssh-keysign.c ssh.c sshd.c]
|
||||
[sshlogin.c sshpty.c]
|
||||
move #include <fcntl.h> out of includes.h
|
||||
- stevesk@cvs.openbsd.org 2006/07/09 15:27:59
|
||||
[ssh-add.c]
|
||||
use O_RDONLY vs. 0 in open(); no binary change
|
||||
|
||||
20060706
|
||||
- (dtucker) [configure.ac] Try AIX blibpath test in different order when
|
||||
|
@ -4807,4 +4810,4 @@
|
|||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||
|
||||
$Id: ChangeLog,v 1.4377 2006/07/10 11:13:46 djm Exp $
|
||||
$Id: ChangeLog,v 1.4378 2006/07/10 11:14:00 djm Exp $
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue