mkpath: indent some comments.

This commit is contained in:
Juan RP 2011-06-21 10:43:52 +02:00
parent 2719f63642
commit 092c832e6c

View File

@ -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;