summaryrefslogtreecommitdiff
path: root/external/bsd/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2012-02-21 13:32:45 +0000
committerwiz <wiz@NetBSD.org>2012-02-21 13:32:45 +0000
commit5e8cd0ddfbb38b2aaba4bf012cadea5b277ad0ca (patch)
treef5f69289ec97ddfcdd99e92624bce96d45cf7719 /external/bsd/pkg_install
parentd20d32877fc0bf42af90e7902c4132c5cec3ebb2 (diff)
Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdirectories are missing in the path to package directory in /var/db/pkg.
Diffstat (limited to 'external/bsd/pkg_install')
-rw-r--r--external/bsd/pkg_install/dist/add/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/bsd/pkg_install/dist/add/perform.c b/external/bsd/pkg_install/dist/add/perform.c
index 4501e91a9e0..7c5bdc80484 100644
--- a/external/bsd/pkg_install/dist/add/perform.c
+++ b/external/bsd/pkg_install/dist/add/perform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.1.1.19 2012/02/19 17:46:46 tron Exp $ */
+/* $NetBSD: perform.c,v 1.2 2012/02/21 13:32:45 wiz Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
@@ -6,7 +6,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: perform.c,v 1.1.1.19 2012/02/19 17:46:46 tron Exp $");
+__RCSID("$NetBSD: perform.c,v 1.2 2012/02/21 13:32:45 wiz Exp $");
/*-
* Copyright (c) 2003 Grant Beattie <grant@NetBSD.org>
@@ -206,7 +206,7 @@ mkdir_p(const char *path)
if (mkdir(p, 0777) == -1) {
saved_errno = errno;
- if (stat(path, &sb) == 0) {
+ if (stat(p, &sb) == 0) {
if (S_ISDIR(sb.st_mode))
goto pass;
errno = ENOTDIR;