summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-02-21 13:32:24 +0000
committerwiz <wiz@pkgsrc.org>2012-02-21 13:32:24 +0000
commit8f4a85152ab80fcb205de5547a50632869439687 (patch)
tree21e9dda9064b66f580b06753f1d9f504d93e44ae /pkgtools/pkg_install
parent72c3d36532ea14a573738877a26882fcb1fb5a7c (diff)
downloadpkgsrc-8f4a85152ab80fcb205de5547a50632869439687.tar.gz
Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdiretories are missing in the path to package directory in /var/db/pkg.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/add/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c
index 0c13ab02491..6f60eebc785 100644
--- a/pkgtools/pkg_install/files/add/perform.c
+++ b/pkgtools/pkg_install/files/add/perform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.101 2012/01/28 12:33:04 joerg Exp $ */
+/* $NetBSD: perform.c,v 1.102 2012/02/21 13:32:24 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.101 2012/01/28 12:33:04 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.102 2012/02/21 13:32:24 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;