Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Close list_file after we're finished w...



details:   https://anonhg.NetBSD.org/src/rev/0f3b1e94c8fb
branches:  trunk
changeset: 499653:0f3b1e94c8fb
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Nov 26 01:11:26 2000 +0000

description:
Close list_file after we're finished with it.

diffstat:

 distrib/utils/sysinst/util.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 6ab40a89b22e -r 0f3b1e94c8fb distrib/utils/sysinst/util.c
--- a/distrib/utils/sysinst/util.c      Sun Nov 26 00:44:16 2000 +0000
+++ b/distrib/utils/sysinst/util.c      Sun Nov 26 01:11:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.56 2000/10/11 23:47:57 fvdl Exp $   */
+/*     $NetBSD: util.c,v 1.57 2000/11/26 01:11:26 simonb Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -633,6 +633,7 @@
                        fprintf(log, "Adding file %s, type %d to list of "
                            "obsolete file\n", current->name, current->type);
        }
+       fclose(list_file);
        if (head == NULL)
                return 1;
 #if 0



Home | Main Index | Thread Index | Old Index