Merge branch 'master' into next

This commit is contained in:
Michael Stapelberg
2014-06-27 09:05:32 +02:00
5 changed files with 93 additions and 5 deletions

View File

@ -41,7 +41,7 @@ static void set_nonblock(int sockfd) {
* Emulates mkdir -p (creates any missing folders)
*
*/
static bool mkdirp(const char *path) {
bool mkdirp(const char *path) {
if (mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == 0)
return true;
if (errno != ENOENT) {