Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/pkg_install/lib Pull up revision 1.15 (request...



details:   https://anonhg.NetBSD.org/src/rev/34858e82a2ce
branches:  netbsd-1-4
changeset: 470261:34858e82a2ce
user:      he <he%NetBSD.org@localhost>
date:      Wed Feb 02 23:09:11 2000 +0000

description:
Pull up revision 1.15 (requested by hubertf):
  Remove clutter left after switching to mkstemp(3).

diffstat:

 usr.sbin/pkg_install/lib/ftpio.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r b4e0d6e23c56 -r 34858e82a2ce usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Wed Feb 02 23:06:51 2000 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Wed Feb 02 23:09:11 2000 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ftpio.c,v 1.11.2.4 2000/02/02 23:06:51 he Exp $        */
+/*     $NetBSD: ftpio.c,v 1.11.2.5 2000/02/02 23:09:11 he Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.11.2.4 2000/02/02 23:06:51 he Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.11.2.5 2000/02/02 23:09:11 he Exp $");
 #endif
 
 /*
@@ -476,6 +476,7 @@
        if (rc != 226) {
            if (Verbose)
                    warnx("ls failed!");
+           unlink(tmpname);    /* remove clutter */
            return -1;
        }
 
@@ -483,6 +484,7 @@
        rc = ftp_cmd("cd .\n", "\n(550|250).*\n");
        if (rc != 250) {
            warnx("chdir failed!");
+           unlink(tmpname);    /* remove clutter */
            return -1;
        }
        
@@ -495,6 +497,7 @@
                f=fopen(tmpname, "r");
                if (f == NULL) {
                    warn("fopen");
+                   unlink(tmpname);    /* remove clutter */
                    return -1;
                }
                matches=0;



Home | Main Index | Thread Index | Old Index