mkdir -p $(perl -e 'print "a/" x 40000') now works.
(main): For --parents (-p), call make_path with the
entire directory name, so we don't ever require that file operations
like stat or chmod be performed on the entire command line argument.
if (create_parents)
{
- char *parents = dir_name (argv[optind]);
- fail = make_path (parents, parent_mode, parent_mode,
+ char *dir = argv[optind];
+ fail = make_path (dir, newmode, parent_mode,
-1, -1, 1, verbose_fmt_string);
- free (parents);
}
-
- if (fail == 0)
+ else
{
const char *dir = argv[optind];
int dir_created;