From: Paul Park Date: Fri, 18 Aug 1995 21:07:05 +0000 (+0000) Subject: Fix script handling X-Git-Tag: krb5-1.0-beta6~1291 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47b46c00e560671da0622dbf38655fc3b137c502;p=krb5.git Fix script handling git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6549 dc483132-0cff-0310-8789-dd5450dbe970 --- 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')