(krb5_kt_add_entry): change open mode to O_WRONLY | O_APPEND

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1944 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-06-30 04:12:29 +00:00
parent 7d00d8ef72
commit 628aebac69

View File

@@ -336,7 +336,7 @@ krb5_kt_add_entry(krb5_context context,
int fd; int fd;
krb5_storage *sp; krb5_storage *sp;
fd = open (id->filename, O_APPEND); fd = open (id->filename, O_WRONLY | O_APPEND);
if (fd < 0) { if (fd < 0) {
fd = open (id->filename, O_WRONLY | O_CREAT, 0600); fd = open (id->filename, O_WRONLY | O_CREAT, 0600);
if (fd < 0) if (fd < 0)