mkpath: indent some comments.
This commit is contained in:
parent
2719f63642
commit
092c832e6c
@ -78,13 +78,13 @@ xbps_mkpath(const char *path, mode_t mode)
|
|||||||
|
|
||||||
sverrno = errno;
|
sverrno = errno;
|
||||||
if (stat(ppath, &sb) < 0) {
|
if (stat(ppath, &sb) < 0) {
|
||||||
/* Not there; use mkdir()s error */
|
/* Not there; use mkdir()s error */
|
||||||
errno = sverrno;
|
errno = sverrno;
|
||||||
free(ppath);
|
free(ppath);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!S_ISDIR(sb.st_mode)) {
|
if (!S_ISDIR(sb.st_mode)) {
|
||||||
/* Is there, but isn't a directory */
|
/* Is there, but isn't a directory */
|
||||||
errno = ENOTDIR;
|
errno = ENOTDIR;
|
||||||
free(ppath);
|
free(ppath);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user