just created and the format string is non-NULL.
while (1)
{
+ int newly_created_dir = 1;
+
/* slash points to the leftmost unprocessed component of dirpath. */
basename_dir = slash;
else
{
/* DIRPATH already exists and is a directory. */
+ newly_created_dir = 0;
}
}
- if (verbose_fmt_string != NULL)
+ if (newly_created_dir && verbose_fmt_string != NULL)
error (0, 0, verbose_fmt_string, dirpath);
if (owner != (uid_t) -1 && group != (gid_t) -1