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 Instead of exec(2)ing rmdir(1), ...



details:   https://anonhg.NetBSD.org/src/rev/5514cd32bd15
branches:  trunk
changeset: 580752:5514cd32bd15
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat May 07 15:09:41 2005 +0000

description:
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 76b9e6985921 -r 5514cd32bd15 usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Sat May 07 15:09:04 2005 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Sat May 07 15:09:41 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.55 2005/05/07 15:09:41 wiz 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.55 2005/05/07 15:09:41 wiz 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