Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/utils/sysinst Revert pull-up of revision 1.25 (...



details:   https://anonhg.NetBSD.org/src/rev/801f036042f0
branches:  netbsd-1-4
changeset: 470190:801f036042f0
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:53:23 2000 +0000

description:
Revert pull-up of revision 1.25 (requested by mycroft):
  Off-by-one error in pullup request.

diffstat:

 distrib/utils/sysinst/run.c |  29 ++++++++++-------------------
 1 files changed, 10 insertions(+), 19 deletions(-)

diffs (52 lines):

diff -r 68c5fa732902 -r 801f036042f0 distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c       Sun Jan 23 12:52:49 2000 +0000
+++ b/distrib/utils/sysinst/run.c       Sun Jan 23 12:53:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.11.2.4 2000/01/15 17:27:52 he Exp $  */
+/*     $NetBSD: run.c,v 1.11.2.5 2000/01/23 12:53:23 he Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -117,15 +117,11 @@
                fflush(log);
                fclose(log);
        } else {
+               sprintf(log_text[0], "Logging: On");
+               logging = 1;
                log = fopen("sysinst.log", "a");
-               if (log != NULL) {
-                       sprintf(log_text[0], "Logging: On");
-                       logging = 1;
-                       fprintf(log, "Log started at: %s\n", asctime(localtime(&tloc)));
-                       fflush(log);            
-               } else {
-                       msg_display(MSG_openfail, "log file", strerror(errno));
-               }
+               fprintf(log, "Log started at: %s\n", asctime(localtime(&tloc)));
+               fflush(log);            
        }
        return(0);
 }
@@ -143,17 +139,12 @@
                fflush(script);
                fclose(script);
        } else {
+               sprintf(log_text[1], "Scripting: On");
+               scripting = 1;
                script = fopen("sysinst.sh", "w");
-               if (script != NULL) {
-                       sprintf(log_text[1], "Scripting: On");
-                       scripting = 1;
-                       fprintf(script, "#!/bin/sh\n");
-                       fprintf(script, "# Script started at: %s\n",
-                           asctime(localtime(&tloc)));
-                       fflush(script);         
-               } else {
-                       msg_display(MSG_openfail, "script file", strerror(errno));
-               }
+               fprintf(script, "#!/bin/sh\n");
+               fprintf(script, "# Script started at: %s\n", asctime(localtime(&tloc)));
+               fflush(script);         
        }
        return(0);
 }



Home | Main Index | Thread Index | Old Index