From c2923a9a4bab7df3238e5d41f5baecdd76f7129d Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 27 Jun 1995 20:36:21 +0000 Subject: [PATCH] Check for EOF from fputs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6169 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin.v4/server/acl_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2