Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/bin/mkdir Pull up following revision(s) (requested by kre...
details: https://anonhg.NetBSD.org/src/rev/8ee567b53b46
branches: netbsd-8
changeset: 987007:8ee567b53b46
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 23 10:04:53 2021 +0000
description:
Pull up following revision(s) (requested by kre in ticket #1697):
bin/mkdir/mkdir.c: revision 1.39
PR bin/56398
The final component of both a/b/c and a/b/c/ is "c", so that's the one
to which the -m arg applies.
diffstat:
bin/mkdir/mkdir.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6005f11e9f34 -r 8ee567b53b46 bin/mkdir/mkdir.c
--- a/bin/mkdir/mkdir.c Wed Sep 15 16:39:19 2021 +0000
+++ b/bin/mkdir/mkdir.c Thu Sep 23 10:04:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkdir.c,v 1.38 2011/08/29 14:45:28 joerg Exp $ */
+/* $NetBSD: mkdir.c,v 1.38.36.1 2021/09/23 10:04:53 martin Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
#else
-__RCSID("$NetBSD: mkdir.c,v 1.38 2011/08/29 14:45:28 joerg Exp $");
+__RCSID("$NetBSD: mkdir.c,v 1.38.36.1 2021/09/23 10:04:53 martin Exp $");
#endif
#endif /* not lint */
@@ -162,7 +162,7 @@
slash += strspn(slash, "/");
slash += strcspn(slash, "/");
- done = (*slash == '\0');
+ done = (*(slash + strspn(slash, "/")) == '\0');
*slash = '\0';
rv = mkdir(path, done ? mode : dir_mode);
Home |
Main Index |
Thread Index |
Old Index