used MkdirP
This commit is contained in:
parent
eec1435513
commit
569410371a
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user