From 47b46c00e560671da0622dbf38655fc3b137c502 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Fri, 18 Aug 1995 21:07:05 +0000 Subject: [PATCH] Fix script handling git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6549 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/ChangeLog | 4 ++++ src/admin/edit/ss_wrapper.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog index a6e127df0..81b8ffc49 100644 --- a/src/admin/edit/ChangeLog +++ b/src/admin/edit/ChangeLog @@ -1,4 +1,8 @@ +Fri Aug 18 17:06:06 EDT 1995 Paul Park (pjpark@mit.edu) + * ss_wrapper.c - Change sense of fgets() check so scripts work. + + Tue Aug 15 14:22:50 EDT 1995 Paul Park (pjpark@mit.edu) * kdb5_edit.c, ss_wrapper.c, cpw.c, kdb5_edit.h - Add support for -s scriptfile and fix up assorted gcc -Wall complaints. diff --git a/src/admin/edit/ss_wrapper.c b/src/admin/edit/ss_wrapper.c index 73e11b571..de6c83436 100644 --- a/src/admin/edit/ss_wrapper.c +++ b/src/admin/edit/ss_wrapper.c @@ -63,7 +63,7 @@ int main(argc, argv) if ((command = (char *) malloc(BUFSIZ))) { /* Process commands from the script until end-of-file or error */ while (!feof(scriptfile) && - !(fgets(command, BUFSIZ, scriptfile))) { + (fgets(command, BUFSIZ, scriptfile))) { /* Strip trailing newline */ if (command[strlen(command)-1] == '\n') -- 2.26.2