Instead of exec(2)ing rmdir(1), just use rmdir(2).

Reviewed by dillo.
This commit is contained in:
wiz 2005-05-07 15:09:41 +00:00
parent 322e1ae000
commit 968dbe95c1
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ pkg_do(char *pkg)
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;