Check for EOF from fputs
authorPaul Park <pjpark@mit.edu>
Tue, 27 Jun 1995 20:36:21 +0000 (20:36 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 27 Jun 1995 20:36:21 +0000 (20:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6169 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin.v4/server/acl_files.c

index 318c80c85d411746658ce212f75a1cc8bfa05f4b..975e79f2c4d40f8d9a5b577ddbbdc80434239ac5 100644 (file)
@@ -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);