Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.sbin/pkg_install/delete Pull up revision 1.32 (requ...



details:   https://anonhg.NetBSD.org/src/rev/ea24551a7075
branches:  netbsd-1-5
changeset: 490916:ea24551a7075
user:      he <he%NetBSD.org@localhost>
date:      Tue Mar 20 18:02:40 2001 +0000

description:
Pull up revision 1.32 (requested by hubertf):
  Various changes / updates:
   o plug file descriptor leak

diffstat:

 usr.sbin/pkg_install/delete/perform.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 90eec38a776f -r ea24551a7075 usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Tue Mar 20 18:02:01 2001 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Tue Mar 20 18:02:40 2001 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.31 2000/05/07 00:33:28 hubertf Exp $     */
+/*     $NetBSD: perform.c,v 1.31.4.1 2001/03/20 18:02:40 he Exp $      */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.31 2000/05/07 00:33:28 hubertf Exp $");
+__RCSID("$NetBSD: perform.c,v 1.31.4.1 2001/03/20 18:02:40 he Exp $");
 #endif
 #endif
 
@@ -270,6 +270,7 @@
                warnx("unable to change to previous directory, deinstall failed");
                fail = 1;
        }
+       close(oldcwd);
 
        return (fail);
 }
@@ -688,5 +689,6 @@
                if (fchdir(oldcwd) == FAIL)
                        err(1, "unable to change to previous directory");
        }
+       close(oldcwd);
        return err_cnt;
 }



Home | Main Index | Thread Index | Old Index