summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/mkdir.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-05-06 17:25:46 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-05-06 17:25:46 +0000
commit308cd599e32c23decb9a1d615c13e7fc6c8277fb (patch)
treeb1bc04a08014b1ddef0b5f544fd05d2ae0da8b9b /usr.sbin/rpki-client/mkdir.c
parent1918f84c93a230f8e25ccdc6c7b78f628d4f1735 (diff)
Bring comment in sync with the code. No functional change.
Diffstat (limited to 'usr.sbin/rpki-client/mkdir.c')
-rw-r--r--usr.sbin/rpki-client/mkdir.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/mkdir.c b/usr.sbin/rpki-client/mkdir.c
index 3991055153a..1428a084f37 100644
--- a/usr.sbin/rpki-client/mkdir.c
+++ b/usr.sbin/rpki-client/mkdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkdir.c,v 1.6 2021/03/29 04:01:17 tb Exp $ */
+/* $OpenBSD: mkdir.c,v 1.7 2021/05/06 17:25:45 claudio Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
@@ -39,9 +39,7 @@
/*
* mkpath -- create directories.
- * path - path
- * mode - file mode of terminal directory
- * dir_mode - file mode of intermediate directories
+ * dir - path to create directories for
*/
int
mkpath(const char *dir)
@@ -53,6 +51,7 @@ mkpath(const char *dir)
return -1;
slash = path;
+
for (;;) {
slash += strspn(slash, "/");
slash += strcspn(slash, "/");