Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/usr.sbin/pkg_install/delete Pull up revision 1.55 (reques...
details: https://anonhg.NetBSD.org/src/rev/c9de8a0027a8
branches: netbsd-3
changeset: 576194:c9de8a0027a8
user: tron <tron%NetBSD.org@localhost>
date: Sat Jun 11 12:27:10 2005 +0000
description:
Pull up revision 1.55 (requested by wiz in ticket #442):
Instead of exec(2)ing rmdir(1), just use rmdir(2).
Reviewed by dillo.
diffstat:
usr.sbin/pkg_install/delete/perform.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r c711827a7aaf -r c9de8a0027a8 usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c Sat Jun 11 12:25:26 2005 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c Sat Jun 11 12:27:10 2005 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: perform.c,v 1.54 2005/02/04 09:03:03 jlam Exp $ */
+/* $NetBSD: perform.c,v 1.54.2.1 2005/06/11 12:27:10 tron 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.54 2005/02/04 09:03:03 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.54.2.1 2005/06/11 12:27:10 tron Exp $");
#endif
#endif
@@ -835,7 +835,7 @@
if (is_depoted_pkg) {
(void) remove_files(LogDir, "+*");
if (isemptydir(LogDir))
- (void) fexec(RMDIR_CMD, LogDir, NULL);
+ (void)rmdir(LogDir);
else
warnx("%s is not empty", LogDir);
return 0;
Home |
Main Index |
Thread Index |
Old Index