(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:
@@ -336,7 +336,7 @@ krb5_kt_add_entry(krb5_context context,
|
||||
int fd;
|
||||
krb5_storage *sp;
|
||||
|
||||
fd = open (id->filename, O_APPEND);
|
||||
fd = open (id->filename, O_WRONLY | O_APPEND);
|
||||
if (fd < 0) {
|
||||
fd = open (id->filename, O_WRONLY | O_CREAT, 0600);
|
||||
if (fd < 0)
|
||||
|
Reference in New Issue
Block a user