From 308cd599e32c23decb9a1d615c13e7fc6c8277fb Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 6 May 2021 17:25:46 +0000 Subject: Bring comment in sync with the code. No functional change. --- usr.sbin/rpki-client/mkdir.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.sbin/rpki-client/mkdir.c') 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, "/"); -- cgit v1.2.3