diff options
author | wiz <wiz@pkgsrc.org> | 2012-02-21 13:32:24 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-02-21 13:32:24 +0000 |
commit | b0886d10883427128fb56181a30a44b6f81bfbfe (patch) | |
tree | 21e9dda9064b66f580b06753f1d9f504d93e44ae /pkgtools | |
parent | adf5ba713f44f9a00a9c5700e4afd4a21aecd90b (diff) | |
download | pkgsrc-b0886d10883427128fb56181a30a44b6f81bfbfe.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')
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 6 |
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; |