diff options
Diffstat (limited to 'commands/mkdir.c')
-rw-r--r-- | commands/mkdir.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/commands/mkdir.c b/commands/mkdir.c index 7d024c871d..01fc0b083b 100644 --- a/commands/mkdir.c +++ b/commands/mkdir.c @@ -1,21 +1,7 @@ -/* - * mkdir.c - create directories - * - * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: © 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix + +/* mkdir.c - create directories */ #include <common.h> #include <command.h> @@ -51,7 +37,7 @@ static int do_mkdir(int argc, char *argv[]) ret = mkdir(argv[optind], 0); } if (ret) { - printf("could not create %s: %s\n", argv[optind], errno_str()); + printf("could not create %s: %m\n", argv[optind]); return 1; } optind++; |