Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install/delete Output the error string when ren...



details:   https://anonhg.NetBSD.org/src/rev/eeb565c404d0
branches:  trunk
changeset: 580816:eeb565c404d0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue May 10 00:06:57 2005 +0000

description:
Output the error string when renaming a dependency file fails. This has
happened to me when I had a misnamed directory in the pkgdb directory.

diffstat:

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

diffs (26 lines):

diff -r b9f1e8e79709 -r eeb565c404d0 usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Tue May 10 00:02:35 2005 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Tue May 10 00:06:57 2005 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.55 2005/05/07 15:09:41 wiz Exp $ */
+/*     $NetBSD: perform.c,v 1.56 2005/05/10 00:06:57 rillig 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.55 2005/05/07 15:09:41 wiz Exp $");
+__RCSID("$NetBSD: perform.c,v 1.56 2005/05/10 00:06:57 rillig Exp $");
 #endif
 #endif
 
@@ -157,7 +157,7 @@
                return 0;
        }
        if (rename(ftmp, fname) == -1)
-               warnx("error renaming `%s' to `%s'", ftmp, fname);
+               warn("error renaming `%s' to `%s'", ftmp, fname);
        remove(ftmp);           /* just in case */
 
        return 0;



Home | Main Index | Thread Index | Old Index