used MkdirP

This commit is contained in:
Дмитрий Левин 2002-08-29 15:00:42 +00:00
parent eec1435513
commit 569410371a
2 changed files with 3 additions and 3 deletions

View File

@ -754,7 +754,7 @@ int packageBinaries(Spec spec)
if (Stat(dn, &st) < 0) {
switch(errno) {
case ENOENT:
if (Mkdir(dn, 0755) == 0)
if (MkdirP(dn, 0755) == 0)
/*@switchbreak@*/ break;
/*@fallthrough@*/
default:

View File

@ -569,7 +569,7 @@ static int markReplacedFiles(PSM_t psm)
/**
* Create directory if it does not exist, make sure path is writable.
* @note This will only create last component of directory path.
* @note This will try to create all necessary components of directory path.
* @param dpath directory path
* @param dname directory use
* @return rpmRC return code
@ -591,7 +591,7 @@ static rpmRC chkdir (const char * dpath, const char * dname)
/*@fallthrough@*/
case URL_IS_FTP:
case URL_IS_HTTP:
rc = Mkdir(dpath, 0755);
rc = MkdirP(dpath, 0755);
break;
case URL_IS_DASH:
break;