$OpenBSD: patch-utils_c,v 1.2 2013/05/07 20:37:23 sthen Exp $

avoid mkdir /, from freebsd ports

--- utils.c.orig	Wed Apr  3 00:29:21 2013
+++ utils.c	Tue May  7 20:56:29 2013
@@ -264,7 +264,9 @@ make_dir(char * path, mode_t mode)
 			++s;
 		}
 
-		if (mkdir(path, mode) < 0) {
+		if (!(path[0] == '/' && s == path + 1) /* skip "/" */
+		    && mkdir(path, mode) < 0) {
+			int e = errno;
 			/* If we failed for any other reason than the directory
 			 * already exists, output a diagnostic and return -1.*/
 			if (errno != EEXIST || (stat(path, &st) < 0 || !S_ISDIR(st.st_mode))) {
