From e73941850909c963e24bac04863e05ae5464cdf9 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 6 May 2021 17:25:45 +0000 Subject: [PATCH] Bring comment in sync with the code. No functional change. --- usr.sbin/rpki-client/mkdir.c | 7 +++---- 1 file 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, "/"); -- 2.20.1