From: Paul Park Date: Tue, 27 Jun 1995 20:36:21 +0000 (+0000) Subject: Check for EOF from fputs X-Git-Tag: krb5-1.0-beta6~1646 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2923a9a4bab7df3238e5d41f5baecdd76f7129d;p=krb5.git Check for EOF from fputs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6169 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin.v4/server/acl_files.c b/src/kadmin.v4/server/acl_files.c index 318c80c85..975e79f2c 100644 --- a/src/kadmin.v4/server/acl_files.c +++ b/src/kadmin.v4/server/acl_files.c @@ -494,7 +494,7 @@ char *principal; /* It isn't there yet, copy the file and put it in */ for(i = 0; i < acl_cache[idx].acl->size; i++) { if(acl_cache[idx].acl->tbl[i] != NULL) { - if(fputs(acl_cache[idx].acl->tbl[i], new) == NULL + if(fputs(acl_cache[idx].acl->tbl[i], new) == EOF || putc('\n', new) != '\n') { acl_abort(acl, new); return(-1);