summaryrefslogtreecommitdiff
path: root/kerberosIV/krb
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1997-01-27 20:44:17 +0000
committerdm <dm@cvs.openbsd.org>1997-01-27 20:44:17 +0000
commit0496f8bac5be6f7abc63054681532bf3e7de62b7 (patch)
tree30dc800325e8c52797d9553560238d54e554b75d /kerberosIV/krb
parent4877d47f7b5b3a6500cb143ee6a3910545d4b596 (diff)
security
Diffstat (limited to 'kerberosIV/krb')
-rw-r--r--kerberosIV/krb/in_tkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosIV/krb/in_tkt.c b/kerberosIV/krb/in_tkt.c
index 21c841e164f..0bb8926c209 100644
--- a/kerberosIV/krb/in_tkt.c
+++ b/kerberosIV/krb/in_tkt.c
@@ -100,7 +100,7 @@ in_tkt(pname, pinst)
if (krb_debug)
printf("swapped UID's %d and %d\n",(int)metoo,(int)me);
}
- if ((tktfile = creat(file,0600)) < 0) {
+ if ((tktfile = open (file,O_CREAT|O_EXCL|O_WRONLY,0600)) < 0) {
if (krb_debug)
fprintf(stderr,"Error initializing %s",TKT_FILE);
return(KFAILURE);